Fix dereferencing strings.

This commit is contained in:
2021-03-14 18:12:56 +00:00
parent 4b75cd3e71
commit b1f7226cfa
17 changed files with 110 additions and 110 deletions

View File

@@ -88,8 +88,8 @@ void MillionFiles(const char* path)
for(pos = 0; pos < 5000; pos++)
{
memset(&filename, 0, 9);
sprintf((char*)filename, "%08d", pos);
memset(filename, 0, 9);
sprintf(filename, "%08d", pos);
str255[0] = 8;
memcpy(str255 + 1, filename, 8);