ctf: compile plugin as C++
[babeltrace.git] / src / compat / memstream.h
index 30d974ca4aaf748fba791d7f19c476f0b6721e66..dcadf048828daefc57ec61ee02ba442d71f456c0 100644 (file)
@@ -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.022889 seconds and 4 git commands to generate.