diff options
Diffstat (limited to 'src/pal/tests/palsuite/file_io/GetFullPathNameW/test4/test4.cpp')
-rw-r--r-- | src/pal/tests/palsuite/file_io/GetFullPathNameW/test4/test4.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pal/tests/palsuite/file_io/GetFullPathNameW/test4/test4.cpp b/src/pal/tests/palsuite/file_io/GetFullPathNameW/test4/test4.cpp index 25eb10d654..baf4b344f0 100644 --- a/src/pal/tests/palsuite/file_io/GetFullPathNameW/test4/test4.cpp +++ b/src/pal/tests/palsuite/file_io/GetFullPathNameW/test4/test4.cpp @@ -61,7 +61,7 @@ int __cdecl main(int argc, char *argv[]) /* Initialize the buffer. */ - memset(szDirectory, '\0', 256); + memset(szDirectory, '\0', 256 * sizeof(szDirectory[0])); /* Create the path to the next level of directory to create. */ |