commit | ef9038c761cec7ae40b334c98c33d6e0b8fae79d | [log] [tgz] |
---|---|---|
author | Rein Klazes <wijn@wanadoo.nl> | Thu Mar 30 16:30:01 2006 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Thu Mar 30 21:54:45 2006 +0200 |
tree | 0e00515199311734628e5108a4bf369c6b805ec9 | |
parent | fee66fb15ac70f109398c6d60e18821b0acfced1 [diff] |
msvcrt: Fix read beyond end of string in __unDNameEx().
diff --git a/dlls/msvcrt/undname.c b/dlls/msvcrt/undname.c index 1cda196..ebf51fa 100644 --- a/dlls/msvcrt/undname.c +++ b/dlls/msvcrt/undname.c
@@ -1233,8 +1233,7 @@ result = symbol_demangle(&sym) ? sym.result : mangled; if (buffer && buflen) { - memcpy(buffer, result, buflen - 1); - buffer[buflen - 1] = '\0'; + lstrcpynA( buffer, result, buflen); } else {