changeset 34591:73348cfa22e2

Use macro FF_ARRAY_ELEMS() instead of numeric constant.
author ib
date Fri, 10 Feb 2012 13:48:42 +0000
parents 2c2fea8e9cc8
children ddf8f24a93a6
files gui/cfg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/cfg.c	Fri Feb 10 13:44:25 2012 +0000
+++ b/gui/cfg.c	Fri Feb 10 13:48:42 2012 +0000
@@ -353,7 +353,7 @@
 {
     char *fname;
     FILE *file;
-    int i;
+    unsigned int i;
 
     // configuration
 
@@ -426,7 +426,7 @@
     file  = fopen(fname, "wt+");
 
     if (file) {
-        for (i = 0; i < 5; i++)
+        for (i = 0; i < FF_ARRAY_ELEMS(fsHistory); i++)
             if (fsHistory[i])
                 fprintf(file, "%s\n", fsHistory[i]);