[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bkdelibs/KDE/4=2E6=5D_kioslave/ftp=3A_sizeof_-=3E_st?=
From:       Dawit Alemayehu <adawit () kde ! org>
Date:       2011-03-20 20:54:46
Message-ID: 20110320205446.1EB64A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit 77029f7f10c5f163e1fb98d52745f19459b7b065 by Dawit Alemayehu.
Committed on 20/03/2011 at 21:51.
Pushed by adawit into branch 'KDE/4.6'.

sizeof -> strlen

M  +1    -1    kioslave/ftp/ftp.cpp     

http://commits.kde.org/kdelibs/77029f7f10c5f163e1fb98d52745f19459b7b065

diff --git a/kioslave/ftp/ftp.cpp b/kioslave/ftp/ftp.cpp
index 95c4450..77675a0 100644
--- a/kioslave/ftp/ftp.cpp
+++ b/kioslave/ftp/ftp.cpp
@@ -92,7 +92,7 @@ static QString ftpCleanPath(const QString& path)
     if (path.endsWith(QLatin1String(";type=A"), Qt::CaseInsensitive) ||
         path.endsWith(QLatin1String(";type=I"), Qt::CaseInsensitive) ||
         path.endsWith(QLatin1String(";type=D"), Qt::CaseInsensitive)) {
-        return path.left((path.length() - sizeof(";type=")));
+        return path.left((path.length() - strlen(";type=X")));
     }
 
     return path;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic