X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcbuffer.h;h=5ce671175b628994820e5edd63a20efb026cb504;hb=8d95a13700647af29810a7be76db757e792d0b34;hp=ff9efe3100bb7d2f82ca8bd3fc2696c5211d6bc4;hpb=85978137de756f311a0f41f8b0c4714129805580;p=silc.git diff --git a/lib/silcutil/silcbuffer.h b/lib/silcutil/silcbuffer.h index ff9efe31..5ce67117 100644 --- a/lib/silcutil/silcbuffer.h +++ b/lib/silcutil/silcbuffer.h @@ -977,7 +977,7 @@ SilcBuffer silc_buffer_salloc(SilcStack stack, SilcUInt32 len) return NULL; /* Allocate the actual data area */ - sb->head = (unsigned char *)silc_smalloc_ua(stack, len); + sb->head = (unsigned char *)silc_smalloc(stack, len); if (silc_unlikely(!sb->head)) return NULL; @@ -1054,12 +1054,12 @@ SilcBuffer silc_buffer_srealloc(SilcStack stack, hlen = silc_buffer_headlen(sb); dlen = silc_buffer_len(sb); - h = (unsigned char *)silc_srealloc_ua(stack, silc_buffer_truelen(sb), - sb->head, newsize); + h = (unsigned char *)silc_srealloc(stack, silc_buffer_truelen(sb), + sb->head, newsize); if (!h) { /* Do slow and stack wasting realloc. The old sb->head is lost and is freed eventually. */ - h = (unsigned char *)silc_smalloc_ua(stack, newsize); + h = (unsigned char *)silc_smalloc(stack, newsize); if (silc_unlikely(!h)) return NULL; memcpy(h, sb->head, silc_buffer_truelen(sb));