From: Jon Trulson Date: Wed, 16 Oct 2019 03:22:11 +0000 (-0600) Subject: dtmail: fix extra format args warnings X-Git-Tag: 2.3.1~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ab863f212d8890c85424190845bcf3426b2c05bb;p=oweals%2Fcde.git dtmail: fix extra format args warnings --- diff --git a/cde/programs/dtmail/dtmail/WMSaveSession.C b/cde/programs/dtmail/dtmail/WMSaveSession.C index fcb5d02e..04cf0376 100644 --- a/cde/programs/dtmail/dtmail/WMSaveSession.C +++ b/cde/programs/dtmail/dtmail/WMSaveSession.C @@ -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; }