diff options
author | Darren Tucker <dtucker@cvs.openbsd.org> | 2013-06-04 19:12:24 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@cvs.openbsd.org> | 2013-06-04 19:12:24 +0000 |
commit | df4fd1c63b02cf3c953287c8e86d3c9940618212 (patch) | |
tree | d6f3077bdc6c12ecf3c97a893f5e207f83942774 /usr.bin/ssh/scp.c | |
parent | 3b0c34847a5615b8df6d7259d6e713c726f731c5 (diff) |
use MAXPATHLEN for buffer size instead of fixed value. ok markus
Diffstat (limited to 'usr.bin/ssh/scp.c')
-rw-r--r-- | usr.bin/ssh/scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index 772eee531f3..eddf65778b5 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scp.c,v 1.174 2013/06/01 20:59:25 dtucker Exp $ */ +/* $OpenBSD: scp.c,v 1.175 2013/06/04 19:12:23 dtucker Exp $ */ /* * scp - secure remote copy. This is basically patched BSD rcp which * uses ssh to do the data transfer (instead of using rcmd). @@ -829,7 +829,7 @@ rsource(char *name, struct stat *statp) { DIR *dirp; struct dirent *dp; - char *last, *vect[1], path[1100]; + char *last, *vect[1], path[MAXPATHLEN]; if (!(dirp = opendir(name))) { run_err("%s: %s", name, strerror(errno)); |