dtmail: fix extra format args warnings
authorJon Trulson <jon@radscan.com>
Wed, 16 Oct 2019 03:22:11 +0000 (21:22 -0600)
committerJon Trulson <jon@radscan.com>
Wed, 16 Oct 2019 03:22:11 +0000 (21:22 -0600)
cde/programs/dtmail/dtmail/WMSaveSession.C

index fcb5d02e47d07dd21eccd16c7b51bdaa071a5d92..04cf03764a9a7c5605cd7dd095779c1d363827a0 100644 (file)
@@ -371,7 +371,7 @@ RoamMenuWindow::restoreSession(char *buf)
                fp, "%s%s%d%d%d%d%d",
                buf,workspaces,&iconic,&x,&y,&width,&height) != 7)
        {
-           fscanf(fp,"[\n]",buf);
+           fscanf(fp,"%s[\n]",buf);
            LOG_CLOSEFILEPTR(log);
            return NULL;
        }
@@ -592,7 +592,7 @@ SendMsgDialog::restoreSession(char *buf)
                fp, "%s%s%d%d%d%d%d",
                buf,workspaces,&iconic,&x,&y,&width,&height) != 7)
        {
-           fscanf(fp,"[\n]",buf);
+           fscanf(fp,"%s[\n]",buf);
            LOG_CLOSEFILEPTR(log);
            return;
        }