projects
/
platform
/
upstream
/
flac.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix all bare malloc() realloc() etc calls to have a proper cast in front
[platform/upstream/flac.git]
/
src
/
plugin_common
/
charset.c
diff --git
a/src/plugin_common/charset.c
b/src/plugin_common/charset.c
index
d5c159e
..
ce3e8b8
100644
(file)
--- a/
src/plugin_common/charset.c
+++ b/
src/plugin_common/charset.c
@@
-83,7
+83,7
@@
char* FLAC_plugin__charset_convert_string (const char *string, char *from, char
/* Due to a GLIBC bug, round outbuf_size up to a multiple of 4 */
/* + 1 for nul in case len == 1 */
outsize = ((length + 3) & ~3) + 1;
- out = malloc(outsize);
+ out =
(char*)
malloc(outsize);
outleft = outsize - 1;
outptr = out;