summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2019-09-09 02:31:19 +0000
committerDamien Miller <djm@mindrot.org>2019-09-13 14:09:20 +1000
commitdf780114278f406ef7cb2278802a2660092fff09 (patch)
tree987de65639818cf8832994feda9f15a5860eb3a5 /scp.c
parentec0e6243660bf2df30c620a6a0d83eded376c9c6 (diff)
upstream: Fix potential truncation warning. ok deraadt.
OpenBSD-Commit-ID: d87b7e3a94ec935e8194e7fce41815e22804c3ff
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index 86204d8f1..84a76d0b8 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: scp.c,v 1.205 2019/06/28 13:35:04 deraadt Exp $ */ 1/* $OpenBSD: scp.c,v 1.206 2019/09/09 02:31:19 dtucker Exp $ */
2/* 2/*
3 * scp - secure remote copy. This is basically patched BSD rcp which 3 * scp - secure remote copy. This is basically patched BSD rcp which
4 * uses ssh to do the data transfer (instead of using rcmd). 4 * uses ssh to do the data transfer (instead of using rcmd).
@@ -1066,7 +1066,7 @@ source(int argc, char **argv)
1066 off_t i, statbytes; 1066 off_t i, statbytes;
1067 size_t amt, nr; 1067 size_t amt, nr;
1068 int fd = -1, haderr, indx; 1068 int fd = -1, haderr, indx;
1069 char *last, *name, buf[2048], encname[PATH_MAX]; 1069 char *last, *name, buf[PATH_MAX + 128], encname[PATH_MAX];
1070 int len; 1070 int len;
1071 1071
1072 for (indx = 0; indx < argc; ++indx) { 1072 for (indx = 0; indx < argc; ++indx) {