summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-server.c b/sftp-server.c
index e7d000cff..4fa07e2f5 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -428,7 +428,7 @@ process_read(void)
428 len = get_int(); 428 len = get_int();
429 429
430 TRACE("read id %u handle %d off %llu len %d", id, handle, 430 TRACE("read id %u handle %d off %llu len %d", id, handle,
431 (u_int64_t)off, len); 431 (unsigned long long)off, len);
432 if (len > sizeof buf) { 432 if (len > sizeof buf) {
433 len = sizeof buf; 433 len = sizeof buf;
434 logit("read change len %d", len); 434 logit("read change len %d", len);
@@ -469,7 +469,7 @@ process_write(void)
469 data = get_string(&len); 469 data = get_string(&len);
470 470
471 TRACE("write id %u handle %d off %llu len %d", id, handle, 471 TRACE("write id %u handle %d off %llu len %d", id, handle,
472 (u_int64_t)off, len); 472 (unsigned long long)off, len);
473 fd = handle_to_fd(handle); 473 fd = handle_to_fd(handle);
474 if (fd >= 0) { 474 if (fd >= 0) {
475 if (lseek(fd, off, SEEK_SET) < 0) { 475 if (lseek(fd, off, SEEK_SET) < 0) {