From 0da95bf1c82edd8d5b8e604a825aa222da911430 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Tue, 23 Sep 2014 19:52:53 +0200
Subject: [PATCH] Fix str_append_data()
`void *' is more appropriate here.
---
utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);