summaryrefslogtreecommitdiff
path: root/src/os_mac_conv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_mac_conv.c')
-rw-r--r--src/os_mac_conv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_mac_conv.c b/src/os_mac_conv.c
index 2bd337ea6..211e115e8 100644
--- a/src/os_mac_conv.c
+++ b/src/os_mac_conv.c
@@ -550,7 +550,7 @@ mac_utf8_to_utf16(
}
convertRange = CFRangeMake(0, CFStringGetLength(utf8_str));
- result = (UniChar *)alloc(convertRange.length * sizeof(UniChar));
+ result = ALLOC_MULT(UniChar, convertRange.length);
CFStringGetCharacters(utf8_str, convertRange, result);