X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcstack.h;h=88032aa81eb7f97c56fe1b9656d1b7c2f329df32;hp=99d1c4ad3ddc0f5aca6dc5c60e5788c790c85aed;hb=dcd0f46c0359192154c83de86ec0ca1f84e1a9d0;hpb=20bb4767d7d7f5a9f3147c5cb47291932320dfff diff --git a/lib/silcutil/silcstack.h b/lib/silcutil/silcstack.h index 99d1c4ad..88032aa8 100644 --- a/lib/silcutil/silcstack.h +++ b/lib/silcutil/silcstack.h @@ -281,16 +281,17 @@ void *silc_stack_malloc(SilcStack stack, SilcUInt32 size); * SYNOPSIS * * void *silc_stack_realloc(SilcStack stack, SilcUInt32 old_size, - * *void *ptr, SilcUInt32 size); + * void *ptr, SilcUInt32 size); * * DESCRIPTION * * Attempts to reallocate memory by changing the size of the `ptr' into * `size'. This routine works only if the previous allocation to `stack' * was `ptr'. If there is another memory allocation between allocating - * `ptr' and this call this routine will return NULL. NULL is also - * returned if the `size' does not fit into the current stack block. - * If NULL is returned the old memory remains intact. + * `ptr' and this call this routine will return NULL (and silc_errno is + * set to SILC_ERR_INVALID_ARGUMENT). NULL is also returned if the `size' + * does not fit into the current stack block. If NULL is returned the old + * memory remains intact. * * NOTES *