# HG changeset patch # User ib # Date 1297869848 0 # Node ID 9894d8dcf4d42cf82ca3f0da4e4af5fb1a5a8bf0 # Parent af497af8b66ca6a2f5dc53e78953c60ce80c6651 Don't use constant not related to definition size of variable (even if smaller in this case). diff -r af497af8b66c -r 9894d8dcf4d4 gui/skin/font.c --- a/gui/skin/font.c Wed Feb 16 15:16:15 2011 +0000 +++ b/gui/skin/font.c Wed Feb 16 15:24:08 2011 +0000 @@ -81,7 +81,7 @@ return -3; } - while ( fgets( tmp,255,f ) ) + while ( fgets( tmp,sizeof(tmp),f ) ) { // remove any kind of newline, if any tmp[strcspn(tmp, "\n\r")] = 0;