diff options
-rw-r--r-- | src/screen.c | 2 | ||||
-rw-r--r-- | src/utmp.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c index e26e4b8..65c51bb 100644 --- a/src/screen.c +++ b/src/screen.c @@ -818,7 +818,7 @@ char **av; size_t newsz; char *newbuf = malloc(3 * len); if (!newbuf) - Panic(0, strnomem); + Panic(0, "%s", strnomem); newsz = RecodeBuf(nwin_options.aka, len, nwin_options.encoding, 0, newbuf); newbuf[newsz] = '\0'; @@ -268,7 +268,7 @@ InitUtmp() if ((utmpfd = open(UtmpName, O_RDWR)) == -1) { if (errno != EACCES) - Msg(errno, UtmpName); + Msg(errno, "%s", UtmpName); debug("InitUtmp failed.\n"); utmpok = 0; return; |