diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2006-06-13 01:18:37 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2006-06-13 01:18:37 +0000 |
commit | f87ea2aef01a9302a58f9d26a881727aa5e8ffac (patch) | |
tree | 1859323a09e123636e685820abfcbc404af1d610 | |
parent | 9b34a6bc79bc65c35ee5f61a68160004d3ee5156 (diff) |
always use a format string, even when printing a constant
-rw-r--r-- | usr.bin/ssh/ssh-agent.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index 37e9feb983b..7c0a731be5b 100644 --- a/usr.bin/ssh/ssh-agent.c +++ b/usr.bin/ssh/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.138 2006/05/17 12:43:34 markus Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.139 2006/06/13 01:18:36 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1081,8 +1081,8 @@ main(int ac, char **av) exit(1); } format = c_flag ? "unsetenv %s;\n" : "unset %s;\n"; - printf(format, SSH_AUTHSOCKET_ENV_NAME); - printf(format, SSH_AGENTPID_ENV_NAME); + printf(format, "%s", SSH_AUTHSOCKET_ENV_NAME); + printf(format, "%s", SSH_AGENTPID_ENV_NAME); printf("echo Agent pid %ld killed;\n", (long)pid); exit(0); } |