Displaying 1 result from an estimated 1 matches for "ast_realloc".
Did you mean:
ast_malloc
2007 Jul 29
0
Asterisk 1.4.X support for Solaris 10?
...* the new length to be the maximum allowed. */
if (max_len)
(*buf)->len = ((res + offset + 1) < max_len) ?
(res + offset + 1) : max_len;
else
(*buf)->len = res + offset + 1;
if (!(*buf = ast_realloc(*buf, (*buf)->len +
sizeof(*(*buf)))))
return AST_DYNSTR_BUILD_FAILED;
if (append)
(*buf)->str[offset] = '\0';
if (ts) {
pthread_setspecific(ts->key, *buf);
#if defined(DEBUG_...