diff options
Diffstat (limited to 'usr.bin/ssh/sftp-glob.c')
-rw-r--r-- | usr.bin/ssh/sftp-glob.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/sftp-glob.c b/usr.bin/ssh/sftp-glob.c index fec8a0af246..0c3323b3069 100644 --- a/usr.bin/ssh/sftp-glob.c +++ b/usr.bin/ssh/sftp-glob.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sftp-glob.c,v 1.3 2001/04/03 13:56:11 stevesk Exp $"); +RCSID("$OpenBSD: sftp-glob.c,v 1.4 2001/04/05 10:42:53 markus Exp $"); #include <glob.h> @@ -73,7 +73,7 @@ struct dirent *fudge_readdir(struct SFTP_OPENDIR *od) return(NULL); memset(&ret, 0, sizeof(ret)); - strlcpy(ret.d_name, od->dir[od->offset++]->filename, + strlcpy(ret.d_name, od->dir[od->offset++]->filename, sizeof(ret.d_name)); return(&ret); @@ -128,7 +128,7 @@ int fudge_stat(const char *path, struct stat *st) } int -remote_glob(int fd_in, int fd_out, const char *pattern, int flags, +remote_glob(int fd_in, int fd_out, const char *pattern, int flags, const int (*errfunc)(const char *, int), glob_t *pglob) { pglob->gl_opendir = (void*)fudge_opendir; @@ -141,6 +141,6 @@ remote_glob(int fd_in, int fd_out, const char *pattern, int flags, cur.fd_in = fd_in; cur.fd_out = fd_out; - return(glob(pattern, flags | GLOB_ALTDIRFUNC, (void*)errfunc, + return(glob(pattern, flags | GLOB_ALTDIRFUNC, (void*)errfunc, pglob)); } |