From: Jaakko Heinonen Date: Sun, 19 Aug 2001 09:03:51 +0000 (+0000) Subject: Corrected some references to MAX_EMAILS X-Git-Tag: upstream/0.6.1~2^2~348 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=90ffc7f76f5ddebc4d670a55bf60a4d74e3f4f84;p=pkg%2Fabook.git Corrected some references to MAX_EMAILS --- diff --git a/database.h b/database.h index 7d947aa..4354c93 100644 --- a/database.h +++ b/database.h @@ -72,7 +72,7 @@ struct db_enumerator init_db_enumerator(int mode); int _i,_j,_k,len; \ memset(&emails, 0, sizeof(emails) ); \ len = strlen(database[item][EMAIL]); \ - for( _i=0,_j=0, _k=0; _i < len && _j < 4; _i++ ) { \ + for( _i=0,_j=0, _k=0; _i < len && _j < MAX_EMAILS; _i++ ) { \ if( database[item][EMAIL][_i] ==',' ) { \ _j++; \ _k = 0; \ diff --git a/edit.c b/edit.c index 352ae49..66dae8b 100644 --- a/edit.c +++ b/edit.c @@ -248,7 +248,7 @@ static void edit_emails(char c, int item) { char *field = NULL; - char emails[4][MAX_EMAIL_LEN]; + char emails[MAX_EMAILS][MAX_EMAIL_LEN]; char tmp[MAX_EMAILSTR_LEN] = ""; int i, len; @@ -268,7 +268,7 @@ edit_emails(char c, int item) my_free(database[item][EMAIL]); - for(i=0; i<4; i++) { + for(i=0; i