X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=ui.c;h=808ead07e15dcdc211fe35964d611222de018ab9;hb=2c5d21ffb7ca5a922817b6eeef4381d386829fc9;hp=448132f450a28e5605b85e2e233ed7a2fde6d458;hpb=fe9d79836b5620747b54a666c65206d61732c960;p=pkg%2Fabook.git diff --git a/ui.c b/ui.c index 448132f..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);