summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2017-10-23 16:25:24 +1100
committerDamien Miller <djm@mindrot.org>2017-10-23 16:25:24 +1100
commite3fa20e2e58fdc88a0e842358778f2de448b771b (patch)
tree645d11a906679a3722e44dcc3aa7ffc38a709818
parentb7548b12a6b2b4abf4d057192c353147e0abba08 (diff)
avoid -Wsign-compare warning in argv copying
-rw-r--r--sshd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 2ff385552..0e3ac26db 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1383,7 +1383,7 @@ main(int ac, char **av)
1383 saved_argc = ac; 1383 saved_argc = ac;
1384 rexec_argc = ac; 1384 rexec_argc = ac;
1385 saved_argv = xcalloc(ac + 1, sizeof(*saved_argv)); 1385 saved_argv = xcalloc(ac + 1, sizeof(*saved_argv));
1386 for (i = 0; i < ac; i++) 1386 for (i = 0; (int)i < ac; i++)
1387 saved_argv[i] = xstrdup(av[i]); 1387 saved_argv[i] = xstrdup(av[i]);
1388 saved_argv[i] = NULL; 1388 saved_argv[i] = NULL;
1389 1389