diff --git a/src/video.c b/src/video.c index d66c6f475..1a6ac551b 100644 --- a/src/video.c +++ b/src/video.c @@ -467,7 +467,7 @@ void take_screenshot() if ((vid_api < 0) || (vid_api > 1)) return; time(&now); info = localtime(&now); - memset(fn, 0, 1024); + memset(screenshot_fn, 0, 1024); pclog("Video API is: %i\n", vid_api); if (vid_api == 1) {