X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=ui.c;h=808ead07e15dcdc211fe35964d611222de018ab9;hb=2c5d21ffb7ca5a922817b6eeef4381d386829fc9;hp=874812d48430bb64a9a9fb99dee73710dc75791e;hpb=a07d2a804360c52a8630ae22d7a123de13bc0d91;p=pkg%2Fabook.git diff --git a/ui.c b/ui.c index 874812d..808ead0 100644 --- a/ui.c +++ b/ui.c @@ -243,6 +243,8 @@ ui_readline(char *prompt, char *s, size_t limit, bool use_completion) ret = abook_readline(bottom, y, x, s, use_completion); + /* XXX: check that string doesn't exceed limit */ + if(ret) strtrim(ret); @@ -593,7 +595,7 @@ ui_open_datafile() 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);