From: Cedric Duval Date: Mon, 31 Oct 2005 06:30:24 +0000 (+0000) Subject: Fixed erroneous boundary. X-Git-Tag: upstream/0.6.1~2^2~123 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=cf2fe6636836950711950bc81c68f5f7a1c45315;p=pkg%2Fabook.git Fixed erroneous boundary. --- diff --git a/database.c b/database.c index 9dce180..729db92 100644 --- a/database.c +++ b/database.c @@ -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;