Alexandre Julliard : winedump: Don't use strncat with source length.
Alexandre Julliard
julliard at winehq.org
Thu Nov 29 15:09:40 CST 2018
Module: wine
Branch: stable
Commit: adc8d5ed735cc1259342c53698daefc24d0e2cd1
URL: https://source.winehq.org/git/wine.git/?a=commit;h=adc8d5ed735cc1259342c53698daefc24d0e2cd1
Author: Alexandre Julliard <julliard at 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 at winehq.org>
(cherry picked from commit 9b940964481694822ee1e3dc45c6a3298fe3302c)
Signed-off-by: Michael Stefaniuc <mstefani at 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')
More information about the wine-cvs
mailing list