summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer-network.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/xfer/xfer-network.c')
-rw-r--r--src/plugins/xfer/xfer-network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/xfer/xfer-network.c b/src/plugins/xfer/xfer-network.c
index d5e643016..bf231a50a 100644
--- a/src/plugins/xfer/xfer-network.c
+++ b/src/plugins/xfer/xfer-network.c
@@ -101,7 +101,7 @@ xfer_network_child_read_cb (void *arg_xfer, int fd)
if (num_read > 0)
{
error = NULL;
- xfer->pos = strtol (bufpipe + 2, &error, 10);
+ xfer->pos = (unsigned long)(strtoll (bufpipe + 2, &error, 10));
xfer->last_activity = time (NULL);
xfer_file_calculate_speed (xfer, 0);