aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-09-23 19:52:53 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-09-23 20:41:47 +0200
commit0da95bf1c82edd8d5b8e604a825aa222da911430 (patch)
tree5535eb3e7f600a99bca3122c2c9c6033c0d4c053
parent7ee3bbc86bd6ca20fafe5c2c1f70adf3116334c9 (diff)
downloadponymap-0da95bf1c82edd8d5b8e604a825aa222da911430.tar.gz
ponymap-0da95bf1c82edd8d5b8e604a825aa222da911430.tar.xz
ponymap-0da95bf1c82edd8d5b8e604a825aa222da911430.zip
Fix str_append_data()
`void *' is more appropriate here.
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index f84001a..df1997b 100644
--- a/utils.c
+++ b/utils.c
@@ -449,7 +449,7 @@ str_ensure_space (struct str *self, size_t n)
}
static void
-str_append_data (struct str *self, const char *data, size_t n)
+str_append_data (struct str *self, const void *data, size_t n)
{
str_ensure_space (self, n);
memcpy (self->str + self->len, data, n);