pull/2/head
Francois Andriot 11 years ago committed by Timothy Pearson
parent 3e52b79020
commit 8c0722d933

@ -6,7 +6,7 @@ INCLUDES= $(all_includes)
# lib_ bedeutet, dass das folgende in libdir installiert werden soll
# _LTLIBRARIES bedeutet, dass es sich hierbei um libtool (also shared)
# Bibliotheken handelt
lib_LTLIBRARIES = kio_ftps.la
kde_module_LTLIBRARIES = kio_ftps.la
# Die Quellen fr kio_hello.la (Punkt durch _ ersetzt)
kio_ftps_la_SOURCES = ftp.cc ftp.h
@ -19,7 +19,7 @@ kio_ftps_la_LIBADD = $(LIB_KSYCOCA)
# nicht wirklich als Bibliothek benutzt wird. $(KDE_PLUGIN) enth<74>t
# Standardflags fr KDE Module, z.B. um die Versionsnummern zu unter-
# drcken
kio_ftps_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
kio_ftps_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN) $(LIB_QT) $(LIB_KDECORE)
# kde_services_ installiert in kde_servicesdir ($KDEDIR/share/services)
# _DATA sind einfache Dateien

@ -20,6 +20,7 @@
Recommended reading explaining FTP details and quirks:
http://cr.yp.to/ftp.html (by D.J. Bernstein)
*/
// fix type conversion error josswern 23.02.2011
#define KIO_FTP_PRIVATE_INCLUDE
@ -913,7 +914,9 @@ int Ftp::ftpOpenPASVDataConnection()
// The usual answer is '227 Entering Passive Mode. (160,39,200,55,6,245)'
// but anonftpd gives '227 =160,39,200,55,6,245'
int i[6];
char *start = strchr(ftpResponse(3), '(');
// fix type conversion error josswern 23.02.2011
const char *start; // statt char *start 23.02.11
start = strchr(ftpResponse(3), '(');
if ( !start )
start = strchr(ftpResponse(3), '=');
if ( !start ||
@ -965,7 +968,8 @@ int Ftp::ftpOpenEPSVDataConnection()
return ERR_INTERNAL;
}
char *start = strchr(ftpResponse(3), '|');
// fix type conversion error josswern 23.02.2011
const char *start = strchr(ftpResponse(3), '|'); // statt char *start = strchr(ftpResponse(3), '|'); josswern
if ( !start || sscanf(start, "|||%d|", &portnum) != 1)
return ERR_INTERNAL;

Loading…
Cancel
Save