tweak for consistency with previous checkin
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Thu, 4 Dec 2003 00:10:07 +0000 (00:10 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Thu, 4 Dec 2003 00:10:07 +0000 (00:10 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@3622 cda61777-01e9-0310-a592-d414129be87e

window.c

index 823ce3f..a039ed3 100644 (file)
--- 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);