summaryrefslogtreecommitdiff
path: root/util/comm-host.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/comm-host.c')
-rw-r--r--util/comm-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/comm-host.c b/util/comm-host.c
index e459bdfaa8..429befa333 100644
--- a/util/comm-host.c
+++ b/util/comm-host.c
@@ -57,7 +57,7 @@ static int fake_readmem(int offset, int bytes, void *dest)
if (c < 0)
return c;
- buf = dest;
+ buf = (char *)(dest);
for (c = 0; c < EC_MEMMAP_TEXT_MAX; c++) {
if (buf[c] == 0)
return c;