From: Jim Meyering Date: Fri, 21 Aug 2009 12:59:49 +0000 (+0200) Subject: fish.c: don't perform arithmetic on void* pointers X-Git-Tag: 1.0.69~42 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=78e2a30b90621e417b8677868092bc6426d7b097;p=libguestfs.git fish.c: don't perform arithmetic on void* pointers * fish/fish.c (xwrite): Use char*. --- diff --git a/fish/fish.c b/fish/fish.c index fbac519..3acd450 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1117,9 +1117,10 @@ add_history_line (const char *line) } int -xwrite (int fd, const void *buf, size_t len) +xwrite (int fd, const void *v_buf, size_t len) { int r; + const char *buf = v_buf; while (len > 0) { r = write (fd, buf, len);