summaryrefslogtreecommitdiffstats
path: root/sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'sample.c')
-rw-r--r--sample.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sample.c b/sample.c
index aa5ef12..6676ffd 100644
--- a/sample.c
+++ b/sample.c
@@ -301,8 +301,12 @@ void do_sftp(SSH_SESSION *session){
}
/* reading the whole directory, file by file */
while((file=sftp_readdir(sftp,dir))){
- fprintf(stderr, "%30s(%.8o) : %.5d.%.5d : %.10ld bytes\n",
- file->name, file->permissions, file->uid, file->gid, file->size);
+ fprintf(stderr, "%30s(%.8o) : %.5d.%.5d : %.10llu bytes\n",
+ file->name,
+ file->permissions,
+ file->uid,
+ file->gid,
+ (long long unsigned int) file->size);
sftp_attributes_free(file);
}
/* when file=NULL, an error has occured OR the directory listing is end of file */