Fixed some bugs revealed by GCC 7.1.0.

This commit is contained in:
OBattler
2017-07-17 13:14:30 +02:00
parent 962885b960
commit ea60b150b6
4 changed files with 11 additions and 11 deletions

View File

@@ -710,7 +710,7 @@ void take_screenshot()
info = localtime(&now);
memset(screenshot_fn, 0, 8192);
memset(screenshot_fn_partial, 0, 4096);
memset(screenshot_path, 0, 4096);
memset(screenshot_path, 0, 8192);
pclog("Video API is: %i\n", vid_api);
append_filename_w(screenshot_path, pcempath, L"screenshots", 4095);
if (!DirectoryExists(screenshot_path))