summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-03-08 15:04:22 -0500
committerSadrul Habib Chowdhury <sadrul@users.sourceforge.net>2010-03-08 15:04:22 -0500
commit26c3a1a371aaa55e2ee322d8c722e1f46bed5d38 (patch)
tree58d2f92eacb5393741d610b76ea616e778ec60ac
parent25ff9f7a8bf4e7e90ed6e2c26d8e3a32fd5a9368 (diff)
downloadscreen-26c3a1a371aaa55e2ee322d8c722e1f46bed5d38.tar.gz
More fixes for -Werror=format-security.
-rw-r--r--src/screen.c2
-rw-r--r--src/utmp.c2
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';
diff --git a/src/utmp.c b/src/utmp.c
index 20f3c3c..afa0948 100644
--- a/src/utmp.c
+++ b/src/utmp.c
@@ -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;