ret = abook_readline(bottom, y, x, s, use_completion);
- if(ret)
+ if(ret) {
strtrim(ret);
+ if(strlen(ret) > limit && limit > 0)
+ ret[limit] = '\0';
+ }
return ret;
}
load_database(filename);
if(items == 0) {
- statusline_msg(_("Sorry, that specified file appears not to be a valid abook addressbook"));
+ statusline_msg(_("Sorry, the specified file appears not to be a valid abook addressbook"));
load_database(datafile);
} else {
free(datafile);