1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-21 23:28:51 -05:00

Fix overflow

This commit is contained in:
TingPing 2014-12-28 12:43:53 -05:00
parent cbaa04905f
commit 330e31c70f

View File

@ -208,7 +208,7 @@ fe_print_text (struct session *sess, char *text, time_t stamp,
else
col = 30;
mirc = atoi (num);
mirc = colconv[mirc];
mirc = colconv[mirc % G_N_ELEMENTS(colconv)];
if (mirc > 9)
{
mirc += 50;