summaryrefslogtreecommitdiffstats
path: root/kioslave/ftp
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/ftp')
-rw-r--r--kioslave/ftp/ftp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kioslave/ftp/ftp.cc b/kioslave/ftp/ftp.cc
index e310930fe..4eed185e6 100644
--- a/kioslave/ftp/ftp.cc
+++ b/kioslave/ftp/ftp.cc
@@ -1955,7 +1955,7 @@ bool Ftp::ftpReadDir(FtpEntry& de)
// and p_date_3 contains probably a time
char * semicolon;
- if ( ( semicolon = (char*)strchr( p_date_3, ':' ) ) )
+ if ( ( semicolon = const_cast<char*>(strchr( p_date_3, ':' )) ) )
{
*semicolon = '\0';
tmptr->tm_min = atoi( semicolon + 1 );