Bugfix: memory overwrite bug.

This commit is contained in:
Ulrich Weigand 1998-10-27 13:17:43 +00:00 committed by Alexandre Julliard
parent 1410cdd0c4
commit 12dc8e7185
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ ELF_LoadLibraryEx32A(LPCSTR libname,PDB32 *process,HANDLE32 hf,DWORD flags) {
s=strrchr(libname,'\\');
if (s) {
strncpy(t,libname,s-libname+1);
t[libname-s+1]= '\0';
t[s-libname+1]= '\0';
} else
s = (LPSTR)libname;
modname = s;