Module: wine Branch: master Commit: 9b940964481694822ee1e3dc45c6a3298fe3302c URL: https://source.winehq.org/git/wine.git/?a=commit;h=9b940964481694822ee1e3dc4...
Author: Alexandre Julliard julliard@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@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')