diff --git a/src/filesystem/windows/SDL_sysfilesystem.c b/src/filesystem/windows/SDL_sysfilesystem.c index e4e9f74df..381b2d1d8 100644 --- a/src/filesystem/windows/SDL_sysfilesystem.c +++ b/src/filesystem/windows/SDL_sysfilesystem.c @@ -72,7 +72,7 @@ SDL_GetBasePath(void) /* buffer too small? Try again. */ SDL_free(path); - len *= 2; + buflen *= 2; } FreeLibrary(psapi);