From: Jaakko Heinonen Date: Tue, 8 Jul 2003 13:42:44 +0000 (+0000) Subject: minor (filter) fixes X-Git-Tag: upstream/0.6.1~2^2~247 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=a90741d557657908af185630d637c043795d9375;p=pkg%2Fabook.git minor (filter) fixes --- diff --git a/BUGS b/BUGS index 626f345..f583e90 100644 --- a/BUGS +++ b/BUGS @@ -15,3 +15,4 @@ known bugs in abook misc: * Cursor disappears in some cases with abook_readline() on Solaris. If you have problems it is recommended to use ncurses library +* fseek in ldif import filter should be eliminated diff --git a/ChangeLog b/ChangeLog index 776ee46..9c9d071 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +0.5.1 + - minor filter fixes + - added bbdb2xx translator source to contrib + 0.5.0 - tried to work around some problems with readline - some documentation update diff --git a/filter.c b/filter.c index 7dcfa32..880213a 100644 --- a/filter.c +++ b/filter.c @@ -490,7 +490,7 @@ ldif_read_line(FILE *in) } if(*line != ' ') { - fseek(in, pos, SEEK_SET); + fseek(in, pos, SEEK_SET); /* fixme ! */ free(line); break; } @@ -913,7 +913,8 @@ pine_parse_buf(char *buf) && pine_conv_table[i] >= 0) { strncpy(tmp, start, len); tmp[len] = 0; - item[pine_conv_table[i]] = strdup(tmp); + if(*tmp) + item[pine_conv_table[i]] = strdup(tmp); } start = end + 1; } @@ -1512,7 +1513,7 @@ text_export_database(FILE * out, struct db_enumerator e) fprintf(out, "-----------------------------------------\n\n"); fprintf(out, "%s", database[e.item][NAME]); - if (database[e.item][NICK]) + if (database[e.item][NICK] && *database[e.item][NICK]) fprintf(out, "\n(%s)", database[e.item][NICK]); fprintf(out, "\n");