Sven Paschukat : ctapi32: Added null terminator to library name.

Alexandre Julliard julliard at winehq.org
Fri Nov 30 07:56:21 CST 2007


Module: wine
Branch: master
Commit: a080af035e767e6793fd8fa3c076537386feb6b5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a080af035e767e6793fd8fa3c076537386feb6b5

Author: Sven Paschukat <Sven.Paschukat at 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);
 	}




More information about the wine-cvs mailing list