From 120f2efcb9049c2b0e0473c15d8bb5eb7caae4e7 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 12 Oct 2014 18:00:05 +0200 Subject: [PATCH] (deps/rzlib) Use strlcat --- deps/rzlib/gzlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/rzlib/gzlib.c b/deps/rzlib/gzlib.c index 9577c125b6..6b8620d797 100644 --- a/deps/rzlib/gzlib.c +++ b/deps/rzlib/gzlib.c @@ -576,8 +576,8 @@ void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg) "%s%s%s", state->path, ": ", msg); #else strlcpy(state->msg, state->path, sizeof(state->msg)); - strcat(state->msg, ": "); - strcat(state->msg, msg); + strlcat(state->msg, ": ", sizeof(state->msg)); + strlcat(state->msg, msg, sizeof(state->msg)); #endif return; }