]> git.deb.at Git - pkg/abook.git/commitdiff
Fixed erroneous boundary.
authorCedric Duval <cedricduval@free.fr>
Mon, 31 Oct 2005 06:30:24 +0000 (06:30 +0000)
committerCedric Duval <cedricduval@free.fr>
Mon, 31 Oct 2005 06:30:24 +0000 (06:30 +0000)
database.c

index 9dce1807392d51605172261a21837c35ab7dec79..729db926bb922ca214f210f0e71b46fe85388e91 100644 (file)
@@ -203,7 +203,7 @@ declare_unknown_field(char *key)
        if(!database)
                return;
 
-       for(i = 0; i < fields_count; i++)
+       for(i = 0; i < items; i++)
                if(database[i]) {
                        database[i] = xrealloc(database[i], ITEM_SIZE);
                        database[i][fields_count - 1] = NULL;