diff options
author | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2010-03-08 15:04:22 -0500 |
---|---|---|
committer | Sadrul Habib Chowdhury <sadrul@users.sourceforge.net> | 2010-03-08 15:04:22 -0500 |
commit | 26c3a1a371aaa55e2ee322d8c722e1f46bed5d38 (patch) | |
tree | 58d2f92eacb5393741d610b76ea616e778ec60ac | |
parent | 25ff9f7a8bf4e7e90ed6e2c26d8e3a32fd5a9368 (diff) | |
download | screen-26c3a1a371aaa55e2ee322d8c722e1f46bed5d38.tar.gz |
More fixes for -Werror=format-security.
-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; |