Commit a81be540 authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

tally: Fix a c++ warning

(Imported from SAMBA commit cb5c6f441f394f91bedf641aa76841bdb833e440)
parent 16a57843
......@@ -450,7 +450,7 @@ char *tally_histogram(const struct tally *tally,
largest_bucket = tally->counts[i];
}
p = graph = malloc(height * (width + 1) + 1);
p = graph = (char *)malloc(height * (width + 1) + 1);
if (!graph) {
free(tmp);
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment