From b830c064a204bc42a9c78dcaa573202432314355 Mon Sep 17 00:00:00 2001 From: mouring Date: Thu, 5 Apr 2001 23:26:32 +0000 Subject: - markus@cvs.openbsd.org 2001/04/05 10:42:57 [auth-chall.c authfd.c channels.c clientloop.c kex.c kexgex.c key.c mac.c packet.c serverloop.c sftp-client.c sftp-client.h sftp-glob.c sftp-glob.h sftp-int.c sftp-server.c sftp.c ssh-keygen.c sshconnect.c sshconnect2.c sshd.c] fix whitespace: unexpand + trailing spaces. --- sftp-glob.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sftp-glob.c') diff --git a/sftp-glob.c b/sftp-glob.c index 208efeb1..53524100 100644 --- a/sftp-glob.c +++ b/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 "ssh.h" #include "buffer.h" @@ -84,7 +84,7 @@ struct dirent *fudge_readdir(struct SFTP_OPENDIR *od) #ifdef BROKEN_ONE_BYTE_DIRENT_D_NAME strlcpy(ret->d_name, od->dir[od->offset++]->filename, MAXPATHLEN); #else - strlcpy(ret->d_name, od->dir[od->offset++]->filename, + strlcpy(ret->d_name, od->dir[od->offset++]->filename, sizeof(ret->d_name)); #endif #ifdef __GNU_LIBRARY__ @@ -150,7 +150,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; @@ -163,6 +163,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)); } -- cgit v1.2.1