forked from Mirrors/freeswitch
windows line endings, sorry.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4496 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
2f95ffa027
commit
efd567034f
@ -653,13 +653,13 @@ SWITCH_DECLARE(int) switch_vasprintf(char **buf, const char *format, va_list ap)
|
|||||||
data.vbuff.endpos = data.buf + data.block_size;
|
data.vbuff.endpos = data.buf + data.block_size;
|
||||||
|
|
||||||
return apr_vformatter(vasprintf_flush, (apr_vformatter_buff_t *)&data, format, ap);
|
return apr_vformatter(vasprintf_flush, (apr_vformatter_buff_t *)&data, format, ap);
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_VASPRINTF
|
#ifdef HAVE_VASPRINTF
|
||||||
return vasprintf(buf, format, ap);
|
return vasprintf(buf, format, ap);
|
||||||
#else
|
#else
|
||||||
*buf = (char *) malloc(2048);
|
*buf = (char *) malloc(2048);
|
||||||
return vsnprintf(*buf, 2048, format, ap);
|
return vsnprintf(*buf, 2048, format, ap);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user