summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2006-03-27 23:15:47 +0000
committerDamien Miller <djm@cvs.openbsd.org>2006-03-27 23:15:47 +0000
commit1c51de46da01befcd0f2aeaaea91388ccfc0d33d (patch)
treee1b249f04d79bcd1a7088cabdaf629c8c0e37154
parent9a26df8620abdd983e1a0c4d575b93f38b0e6889 (diff)
always use a format string for addargs; spotted by mouring@
-rw-r--r--usr.bin/ssh/sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp.c b/usr.bin/ssh/sftp.c
index 63ffa324e64..91592b20598 100644
--- a/usr.bin/ssh/sftp.c
+++ b/usr.bin/ssh/sftp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp.c,v 1.79 2006/03/25 13:17:02 djm Exp $ */
+/* $OpenBSD: sftp.c,v 1.80 2006/03/27 23:15:46 djm Exp $ */
/*
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
*
@@ -1444,7 +1444,7 @@ main(int argc, char **argv)
memset(&args, '\0', sizeof(args));
args.list = NULL;
- addargs(&args, ssh_program);
+ addargs(&args, "%s", ssh_program);
addargs(&args, "-oForwardX11 no");
addargs(&args, "-oForwardAgent no");
addargs(&args, "-oPermitLocalCommand no");