X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/debe102ceee80ab67ee7d67a588754ff6d575ae7..850323f90aba84761ba411f18086a2b5a674506d:/window.c?ds=sidebyside diff --git a/window.c b/window.c index 823ce3fc..a039ed3b 100644 --- a/window.c +++ b/window.c @@ -4433,7 +4433,7 @@ void beep(void *frontend, int mode) } else if (mode == BELL_WAVEFILE) { if (!PlaySound(cfg.bell_wavefile.path, NULL, SND_ASYNC | SND_FILENAME)) { - char buf[sizeof(cfg.bell_wavefile) + 80]; + char buf[sizeof(cfg.bell_wavefile.path) + 80]; char otherbuf[100]; sprintf(buf, "Unable to play sound file\n%s\n" "Using default sound instead", cfg.bell_wavefile.path);