From 84b453e4d4140230bd4d72d530b2b08f9a51b4e2 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 19 Dec 2018 15:30:39 +0000 Subject: Fix a trivial calloc warning Change-Id: Id457c15555a6ca6333474601f92982446afa40ab Signed-off-by: Richard Hughes Reviewed-on: https://review.coreboot.org/c/31223 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber --- flashrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index cb2da46f7..e82c32e86 100644 --- a/flashrom.c +++ b/flashrom.c @@ -1461,7 +1461,7 @@ static int read_by_layout(struct flashctx *, uint8_t *); int read_flash_to_file(struct flashctx *flash, const char *filename) { unsigned long size = flash->chip->total_size * 1024; - unsigned char *buf = calloc(size, sizeof(char)); + unsigned char *buf = calloc(size, sizeof(unsigned char)); int ret = 0; msg_cinfo("Reading flash... "); -- cgit v1.2.3