[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kioslave/smb
From: Gustavo P. Boiko <boiko () conectiva ! com ! br>
Date: 2004-06-18 17:32:06
Message-ID: 20040618173206.7994098EA () office ! kde ! org
[Download RAW message or body]
CVS commit by boiko:
commentlen includes the null terminator of the comment. We need to pass to
QString::fromUtf8 the real comment's length.
M +1 -1 kio_smb_browse.cpp 1.46
--- kdebase/kioslave/smb/kio_smb_browse.cpp #1.45:1.46
@@ -339,5 +339,5 @@ void SMBSlave::listDir( const KURL& kurl
atom.m_uds = KIO::UDS_NAME;
QString dirpName = QString::fromUtf8( dirp->name );
- QString comment = QString::fromUtf8( dirp->comment, dirp->commentlen );
+ QString comment = QString::fromUtf8( dirp->comment, dirp->commentlen - 1);
if ( dirp->smbc_type == SMBC_SERVER || dirp->smbc_type == SMBC_WORKGROUP ) {
atom.m_str = dirpName.lower();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic