summaryrefslogtreecommitdiff
path: root/src/pal/tests/palsuite/file_io/GetFullPathNameW/test3/test3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/tests/palsuite/file_io/GetFullPathNameW/test3/test3.cpp')
-rw-r--r--src/pal/tests/palsuite/file_io/GetFullPathNameW/test3/test3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pal/tests/palsuite/file_io/GetFullPathNameW/test3/test3.cpp b/src/pal/tests/palsuite/file_io/GetFullPathNameW/test3/test3.cpp
index ba80cf222d..45c0c98505 100644
--- a/src/pal/tests/palsuite/file_io/GetFullPathNameW/test3/test3.cpp
+++ b/src/pal/tests/palsuite/file_io/GetFullPathNameW/test3/test3.cpp
@@ -62,7 +62,7 @@ int __cdecl main(int argc, char *argv[])
/* Initialize the buffer.
*/
- memset( szDirectory, '\0', 256 );
+ memset( szDirectory, '\0', 256 * sizeof(szDirectory[0]) );
/* Change the current working directory.
*/