X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c66b47937d9e790256fa99815557935d6561b309..361f9cbca968760822f53a80b407f24ce1713ccd:/sbr/utils.c diff --git a/sbr/utils.c b/sbr/utils.c index f7f006a1..fe531ac2 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -6,6 +6,7 @@ */ #include "h/mh.h" +#include "read_yes_or_no_if_tty.h" #include "concat.h" #include "r1bindex.h" #include "context_foil.h" @@ -176,7 +177,7 @@ char * addlist (char *list, const char *item) { if (list) - list = add (", ", list); + list = add (", ", list); return add (item, list); } @@ -344,7 +345,7 @@ nmh_strcasestr (const char *s1, const char *s2) } -/* truncpy copies at most size - 1 chars from non-NULL src to non-NULL, +/* trunccpy copies at most size-1 chars from non-NULL src to non-NULL, * non-overlapping, dst, and ensures dst is NUL terminated. If size is * zero then it aborts as dst cannot be NUL terminated. *