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:
Michael Jerris 2007-03-09 21:12:41 +00:00
parent 2f95ffa027
commit efd567034f
1 changed files with 7 additions and 7 deletions

View File

@ -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;
return apr_vformatter(vasprintf_flush, (apr_vformatter_buff_t *)&data, format, ap);
#endif
#ifdef HAVE_VASPRINTF
return vasprintf(buf, format, ap);
#else
*buf = (char *) malloc(2048);
return vsnprintf(*buf, 2048, format, ap);
#endif
#endif
#ifdef HAVE_VASPRINTF
return vasprintf(buf, format, ap);
#else
*buf = (char *) malloc(2048);
return vsnprintf(*buf, 2048, format, ap);
#endif
}