Browse Source

tally: Fix a c++ warning

(Imported from SAMBA commit cb5c6f441f394f91bedf641aa76841bdb833e440)
Volker Lendecke 14 years ago
parent
commit
a81be540c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/tally/tally.c

+ 1 - 1
ccan/tally/tally.c

@@ -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;