diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2019-09-09 04:31:19 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-09-13 06:09:20 +0200 |
commit | df780114278f406ef7cb2278802a2660092fff09 (patch) | |
tree | 987de65639818cf8832994feda9f15a5860eb3a5 /scp.c | |
parent | memleak of buffer in sshpam_query (diff) | |
download | openssh-df780114278f406ef7cb2278802a2660092fff09.tar.xz openssh-df780114278f406ef7cb2278802a2660092fff09.zip |
upstream: Fix potential truncation warning. ok deraadt.
OpenBSD-Commit-ID: d87b7e3a94ec935e8194e7fce41815e22804c3ff
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |