Take the correct char type in growbuf_append()
This change removes all warnings (-Wall) from this function.
This commit is contained in:
2
indep.c
2
indep.c
@@ -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);
|
||||
|
Reference in New Issue
Block a user