(deps/rzlib) Use strlcat

This commit is contained in:
twinaphex 2014-10-12 18:00:05 +02:00
parent 8caea95a1d
commit 120f2efcb9

4
deps/rzlib/gzlib.c vendored
View File

@ -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;
}