projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add C++ interface for the libbabeltrace2 `bt_field` API
[babeltrace.git]
/
src
/
compat
/
memstream.h
diff --git
a/src/compat/memstream.h
b/src/compat/memstream.h
index 30d974ca4aaf748fba791d7f19c476f0b6721e66..dcadf048828daefc57ec61ee02ba442d71f456c0 100644
(file)
--- a/
src/compat/memstream.h
+++ b/
src/compat/memstream.h
@@
-299,7
+299,7
@@
int bt_close_memstream(char **buf, size_t *size, FILE *fp)
}
*size = pos;
/* add final \0 */
- *buf = calloc(pos + 1, sizeof(char));
+ *buf =
(char *)
calloc(pos + 1, sizeof(char));
if (!*buf) {
return -ENOMEM;
}
This page took
0.034613 seconds
and
4
git commands to generate.