summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-client.c')
-rw-r--r--sftp-client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-client.c b/sftp-client.c
index 7be73d29f..cf672e70d 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -29,7 +29,7 @@
29/* XXX: copy between two remote sites */ 29/* XXX: copy between two remote sites */
30 30
31#include "includes.h" 31#include "includes.h"
32RCSID("$OpenBSD: sftp-client.c,v 1.15 2001/03/19 10:52:51 djm Exp $"); 32RCSID("$OpenBSD: sftp-client.c,v 1.16 2001/04/05 10:42:52 markus Exp $");
33 33
34#include "ssh.h" 34#include "ssh.h"
35#include "buffer.h" 35#include "buffer.h"
@@ -284,7 +284,7 @@ do_close(int fd_in, int fd_out, char *handle, u_int handle_len)
284 284
285 285
286int 286int
287do_lsreaddir(int fd_in, int fd_out, char *path, int printflag, 287do_lsreaddir(int fd_in, int fd_out, char *path, int printflag,
288 SFTP_DIRENT ***dir) 288 SFTP_DIRENT ***dir)
289{ 289{
290 Buffer msg; 290 Buffer msg;
@@ -370,7 +370,7 @@ do_lsreaddir(int fd_in, int fd_out, char *path, int printflag,
370 printf("%s\n", longname); 370 printf("%s\n", longname);
371 371
372 if (dir) { 372 if (dir) {
373 *dir = xrealloc(*dir, sizeof(**dir) * 373 *dir = xrealloc(*dir, sizeof(**dir) *
374 (ents + 2)); 374 (ents + 2));
375 (*dir)[ents] = xmalloc(sizeof(***dir)); 375 (*dir)[ents] = xmalloc(sizeof(***dir));
376 (*dir)[ents]->filename = xstrdup(filename); 376 (*dir)[ents]->filename = xstrdup(filename);