summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-08-05 13:10:09 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-08-05 13:10:09 +0200
commitacef1477751c71c078df10891a1a0124f46b79e6 (patch)
tree4258029fa8c587b09f9fa850aa5b6938f492e0c6 /src
parent7d0e5edc9a3bdf648227c898e99af1999a6257d6 (diff)
downloadweechat-acef1477751c71c078df10891a1a0124f46b79e6.zip
Fix progress bar display for large xfer/dcc files (more than 2 Gb)
Diffstat (limited to 'src')
-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);