summaryrefslogtreecommitdiff
path: root/zen/osx_string.h
diff options
context:
space:
mode:
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