summaryrefslogtreecommitdiff
path: root/zen/osx_string.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:28:01 +0200
commitfe9eb89ebc1b3c33cbac00a3fa095a14faef9113 (patch)
tree8a3bb620a9acb83fe0057061a86e8f2cb91a9fe1 /zen/osx_string.h
parent5.21 (diff)
downloadFreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.gz
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.tar.bz2
FreeFileSync-fe9eb89ebc1b3c33cbac00a3fa095a14faef9113.zip
5.22
Diffstat (limited to 'zen/osx_string.h')
-rw-r--r--zen/osx_string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/zen/osx_string.h b/zen/osx_string.h
index 0d77345c..38c54023 100644
--- a/zen/osx_string.h
+++ b/zen/osx_string.h
@@ -48,7 +48,7 @@ Zstring cfStringToZstring(const CFStringRef& cfStr)
if (::CFStringGetCString(cfStr, &*buffer.begin(), bufferSize, kCFStringEncodingUTF8))
{
- buffer.resize(zen::strLength(&*buffer.begin())); //caveat: memory consumption of returned string!
+ buffer.resize(zen::strLength(buffer.c_str())); //caveat: memory consumption of returned string!
return buffer;
}
}
bgstack15