mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
(deps/rzlib) Use strlcat
This commit is contained in:
parent
8caea95a1d
commit
120f2efcb9
4
deps/rzlib/gzlib.c
vendored
4
deps/rzlib/gzlib.c
vendored
@ -576,8 +576,8 @@ void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg)
|
|||||||
"%s%s%s", state->path, ": ", msg);
|
"%s%s%s", state->path, ": ", msg);
|
||||||
#else
|
#else
|
||||||
strlcpy(state->msg, state->path, sizeof(state->msg));
|
strlcpy(state->msg, state->path, sizeof(state->msg));
|
||||||
strcat(state->msg, ": ");
|
strlcat(state->msg, ": ", sizeof(state->msg));
|
||||||
strcat(state->msg, msg);
|
strlcat(state->msg, msg, sizeof(state->msg));
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user