summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-31 23:10:31 +1100
committerDamien Miller <djm@mindrot.org>2006-03-31 23:10:31 +1100
commit2b5a0de9034a0f5943be129039dc56caee23fd94 (patch)
tree6069aac6a3b40bc032627bbd5cad831e109a9cc2 /sftp.c
parent5a73c1a34d7ed75295da703c835464746474d297 (diff)
- djm@cvs.openbsd.org 2006/03/27 23:15:46
[sftp.c] always use a format string for addargs; spotted by mouring@
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index f5212ed4f..31b71db2b 100644
--- a/sftp.c
+++ b/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>
*
@@ -1468,7 +1468,7 @@ main(int argc, char **argv)
__progname = ssh_get_progname(argv[0]);
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");