[sftp-int.c]
     fix memset and whitespace
This commit is contained in:
Ben Lindstrom 2001-03-17 00:36:17 +00:00
parent c8d1c30c31
commit 5df2ffaeac
2 changed files with 13 additions and 10 deletions

View File

@ -12,6 +12,9 @@
[sftp-client.c sftp-client.h sftp-glob.c sftp-int.c]
Revise globbing for get/put to be more shell-like. In particular,
"get/put file* directory/" now works. ok markus@
- markus@cvs.openbsd.org 2001/03/16 09:55:53
[sftp-int.c]
fix memset and whitespace
20010315
- OpenBSD CVS Sync
@ -4574,4 +4577,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
$Id: ChangeLog,v 1.964 2001/03/17 00:34:46 mouring Exp $
$Id: ChangeLog,v 1.965 2001/03/17 00:36:17 mouring Exp $

View File

@ -26,7 +26,7 @@
/* XXX: recursive operations */
#include "includes.h"
RCSID("$OpenBSD: sftp-int.c,v 1.29 2001/03/16 08:16:18 djm Exp $");
RCSID("$OpenBSD: sftp-int.c,v 1.30 2001/03/16 09:55:53 markus Exp $");
#include "buffer.h"
#include "xmalloc.h"
@ -350,7 +350,7 @@ process_get(int in, int out, char *src, char *dst, char *pwd, int pflag)
abs_src = xstrdup(src);
abs_src = make_absolute(abs_src, pwd);
memset(&g, '\0', sizeof(g));
memset(&g, 0, sizeof(g));
debug3("Looking up %s", abs_src);
if (remote_glob(in, out, abs_src, 0, NULL, &g)) {
error("File \"%s\" not found.", abs_src);
@ -429,7 +429,7 @@ process_put(int in, int out, char *src, char *dst, char *pwd, int pflag)
tmp_dst = make_absolute(tmp_dst, pwd);
}
memset(&g, '\0', sizeof(g));
memset(&g, 0, sizeof(g));
debug3("Looking up %s", src);
if (glob(src, 0, NULL, &g)) {
error("File \"%s\" not found.", src);