Take the correct char type in growbuf_append()

This change removes all warnings (-Wall) from this function.
This commit is contained in:
Rene Kita
2021-09-11 19:42:19 +02:00
parent ab22479fb3
commit 0cd26b92cb
2 changed files with 2 additions and 2 deletions

View File

@@ -821,7 +821,7 @@ growbuf_reserve(struct growbuf *gb, int leastarea)
}
void
growbuf_append(struct growbuf *gb, const char *src, int len)
growbuf_append(struct growbuf *gb, const unsigned char *src, int len)
{
growbuf_reserve(gb, gb->length + len);
memcpy(&gb->ptr[gb->length], src, len);