Alexandre Julliard : winedump: Don't use strncat with source length.
Module: wine Branch: stable Commit: adc8d5ed735cc1259342c53698daefc24d0e2cd1 URL: https://source.winehq.org/git/wine.git/?a=commit;h=adc8d5ed735cc1259342c5369... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Aug 15 07:08:04 2018 +0200 winedump: Don't use strncat with source length. gcc is now warning about this. Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> (cherry picked from commit 9b940964481694822ee1e3dc45c6a3298fe3302c) Signed-off-by: Michael Stefaniuc <mstefani(a)winehq.org> --- tools/winedump/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winedump/debug.c b/tools/winedump/debug.c index 3e54373..221c079 100644 --- a/tools/winedump/debug.c +++ b/tools/winedump/debug.c @@ -709,7 +709,7 @@ void dump_stabs(const void* pv_stabs, unsigned szstabs, const char* stabstr, stabbufflen += 65536; stabbuff = realloc(stabbuff, stabbufflen); } - strncat(stabbuff, ptr, len - 1); + strcat(stabbuff, ptr); continue; } else if (stabbuff[0] != '\0')
participants (1)
-
Alexandre Julliard