]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Fix potential truncation warning. ok deraadt.
authordtucker@openbsd.org <dtucker@openbsd.org>
Mon, 9 Sep 2019 02:31:19 +0000 (02:31 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 13 Sep 2019 04:09:20 +0000 (14:09 +1000)
OpenBSD-Commit-ID: d87b7e3a94ec935e8194e7fce41815e22804c3ff

scp.c

diff --git a/scp.c b/scp.c
index 86204d8f1c93cb881340c3fbfc27d5c9a96c0ebf..84a76d0b8d39f9fd4b3d0deb703e9176ec38c0f9 100644 (file)
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scp.c,v 1.205 2019/06/28 13:35:04 deraadt Exp $ */
+/* $OpenBSD: scp.c,v 1.206 2019/09/09 02:31:19 dtucker Exp $ */
 /*
  * scp - secure remote copy.  This is basically patched BSD rcp which
  * uses ssh to do the data transfer (instead of using rcmd).
@@ -1066,7 +1066,7 @@ source(int argc, char **argv)
        off_t i, statbytes;
        size_t amt, nr;
        int fd = -1, haderr, indx;
-       char *last, *name, buf[2048], encname[PATH_MAX];
+       char *last, *name, buf[PATH_MAX + 128], encname[PATH_MAX];
        int len;
 
        for (indx = 0; indx < argc; ++indx) {