summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scp.c b/scp.c
index decb8e98..ae24fe2e 100644
--- a/scp.c
+++ b/scp.c
@@ -551,9 +551,9 @@ syserr: run_err("%s: %s", name, strerror(errno));
(long long) stb.st_size, last);
#else
/* XXX: Handle integer overflow? */
- snprintf(buf, sizeof buf, "C%04o %ld %s\n",
+ snprintf(buf, sizeof buf, "C%04o %lu %s\n",
(u_int) (stb.st_mode & FILEMODEMASK),
- (long) stb.st_size, last);
+ (u_long) stb.st_size, last);
#endif
if (verbose_mode) {