summaryrefslogtreecommitdiff
path: root/ftp/kasablanca/files/patch-ftpthread.cpp
blob: 3d9802b46d123e85b6005d44974a2abcdce6dd46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/ftpthread.cpp.orig	Mon Jan 31 14:24:47 2005
+++ src/ftpthread.cpp	Thu Feb  3 00:45:36 2005
@@ -31,6 +31,7 @@
 
 #include <iostream>
 #include <list>
+#include <stdlib.h>
 
 #include "kbconfig.h"
 #include "ftplib.h"
@@ -1226,7 +1227,7 @@
 				loc--;
 			}
 
-			off64_t size = atoll(buffer.substr( sizebegin, datebegin - sizebegin).c_str());
+			off64_t size = strtoll(buffer.substr( sizebegin, datebegin - sizebegin).c_str(), (char **)NULL, 10);
 			
 			filestring.erase();
 			filestring.append(buffer, fileloc, buffer.length() - fileloc);