mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Fix off-by-one error in placing trailing \0.
This commit is contained in:
parent
023b1aae0a
commit
d23cf08262
1 changed files with 1 additions and 1 deletions
|
@ -5615,7 +5615,7 @@ HRESULT WINAPI StgOpenStorage(
|
|||
/* prepare the file name string given in lieu of the root property name */
|
||||
GetFullPathNameW(pwcsName, MAX_PATH, fullname, NULL);
|
||||
memcpy(newStorage->filename, fullname, PROPERTY_NAME_BUFFER_LEN);
|
||||
newStorage->filename[PROPERTY_NAME_BUFFER_LEN] = '\0';
|
||||
newStorage->filename[PROPERTY_NAME_BUFFER_LEN-1] = '\0';
|
||||
|
||||
/*
|
||||
* Get an "out" pointer for the caller.
|
||||
|
|
Loading…
Reference in a new issue