Sven Paschukat : ctapi32: Added null terminator to library name.
Module: wine Branch: master Commit: a080af035e767e6793fd8fa3c076537386feb6b5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=a080af035e767e6793fd8fa3c0... Author: Sven Paschukat <Sven.Paschukat(a)T-Online.de> Date: Thu Nov 29 21:36:09 2007 +0100 ctapi32: Added null terminator to library name. --- dlls/ctapi32/ctapi32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ctapi32/ctapi32.c b/dlls/ctapi32/ctapi32.c index 2af4632..5c330bd 100644 --- a/dlls/ctapi32/ctapi32.c +++ b/dlls/ctapi32/ctapi32.c @@ -66,7 +66,7 @@ static int load_functions(void) { buffer_w[size / sizeof(WCHAR)] = '\0'; len = WideCharToMultiByte(CP_UNIXCP, 0, buffer_w, -1, buffer, sizeof(buffer), NULL, NULL); if (len) - memcpy(soname, buffer, len - 1); + memcpy(soname, buffer, len); } RegCloseKey(key_handle); }
participants (1)
-
Alexandre Julliard