mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-17 16:10:29 +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);
|
||||
#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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user