projects
/
profile
/
ivi
/
qtbase.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aac6805
)
Use strlen to determine length of returned path
author
João Abecasis
<joao.abecasis@nokia.com>
Wed, 14 Mar 2012 15:11:27 +0000
(16:11 +0100)
committer
Qt by Nokia
<qt-info@nokia.com>
Wed, 14 Mar 2012 23:50:47 +0000
(
00:50
+0100)
Change-Id: I8603f032bacdbb060be043f8720bd2b8c34d7ec6
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/corelib/io/qstandardpaths_mac.cpp
patch
|
blob
|
history
diff --git
a/src/corelib/io/qstandardpaths_mac.cpp
b/src/corelib/io/qstandardpaths_mac.cpp
index
e377922
..
2890ead
100644
(file)
--- a/
src/corelib/io/qstandardpaths_mac.cpp
+++ b/
src/corelib/io/qstandardpaths_mac.cpp
@@
-97,7
+97,7
@@
static QString getFullPath(const FSRef &ref)
{
QByteArray ba(2048, 0);
if (FSRefMakePath(&ref, reinterpret_cast<UInt8 *>(ba.data()), ba.size()) == noErr)
- return QString::fromUtf8(ba).normalized(QString::NormalizationForm_C);
+ return QString::fromUtf8(ba
.constData()
).normalized(QString::NormalizationForm_C);
return QString();
}