X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcbuffer.h;h=673c4a7ff0608da0bd421c4f42be134060c5c313;hb=f3b43606c546a86a43b283b46464972296e1e271;hp=90bc3be574611fa2896ca3d2ac751455d57c6d01;hpb=8cf40cbc445abd0080288cd1db9ed0c81912de88;p=silc.git diff --git a/lib/silcutil/silcbuffer.h b/lib/silcutil/silcbuffer.h index 90bc3be5..673c4a7f 100644 --- a/lib/silcutil/silcbuffer.h +++ b/lib/silcutil/silcbuffer.h @@ -1051,7 +1051,7 @@ SilcBuffer silc_buffer_srealloc(SilcStack stack, if (!h) { /* Do slow and stack wasting realloc. The old sb->head is lost and is freed eventually. */ - h = silc_smalloc_ua(stack, newsize); + h = (unsigned char *)silc_smalloc_ua(stack, newsize); if (silc_unlikely(!h)) return NULL; memcpy(h, sb->head, silc_buffer_truelen(sb));