Fix overflow
This commit is contained in:
parent
cbaa04905f
commit
330e31c70f
|
@ -208,7 +208,7 @@ fe_print_text (struct session *sess, char *text, time_t stamp,
|
||||||
else
|
else
|
||||||
col = 30;
|
col = 30;
|
||||||
mirc = atoi (num);
|
mirc = atoi (num);
|
||||||
mirc = colconv[mirc];
|
mirc = colconv[mirc % G_N_ELEMENTS(colconv)];
|
||||||
if (mirc > 9)
|
if (mirc > 9)
|
||||||
{
|
{
|
||||||
mirc += 50;
|
mirc += 50;
|
||||||
|
|
Loading…
Reference in New Issue