Symbian compilation fixes.
[silc.git] / lib / silcutil / silcbuffer.h
index 90bc3be574611fa2896ca3d2ac751455d57c6d01..673c4a7ff0608da0bd421c4f42be134060c5c313 100644 (file)
@@ -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));