From: Christophe CURIS <christophe.cu...@free.fr> The function wrealloc never fails, and allocates enough storage to store the resulting string, so it is useless to check if strcat failed.
Signed-off-by: Christophe CURIS <christophe.cu...@free.fr> --- WINGs/string.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WINGs/string.c b/WINGs/string.c index 182d377..5ec333e 100644 --- a/WINGs/string.c +++ b/WINGs/string.c @@ -235,8 +235,7 @@ char *wstrappend(char *dst, const char *src) slen = strlen(dst) + strlen(src) + 1; dst = wrealloc(dst, slen); - if (wstrlcat(dst, src, slen) >= slen) - return NULL; + strcat(dst, src); return dst; } -- 1.9.2 -- To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.