Fix str_append_data()

`void *' is more appropriate here.
This commit is contained in:
Přemysl Eric Janouch 2014-09-23 19:52:53 +02:00
parent 7ee3bbc86b
commit 0da95bf1c8
1 changed files with 1 additions and 1 deletions

View File

@ -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);