changeset 32820:9894d8dcf4d4

Don't use constant not related to definition size of variable (even if smaller in this case).
author ib
date Wed, 16 Feb 2011 15:24:08 +0000
parents af497af8b66c
children f78284fea1aa
files gui/skin/font.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;