Update of /cvsroot/tmux/tmux/compat In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25641/compat
Modified Files: asprintf.c Log Message: Only have one asprintf implementation, that's likely to always work. Index: asprintf.c =================================================================== RCS file: /cvsroot/tmux/tmux/compat/asprintf.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- asprintf.c 7 Jan 2011 00:35:13 -0000 1.5 +++ asprintf.c 21 Jan 2011 20:03:18 -0000 1.6 @@ -40,28 +40,6 @@ return (n); } -#ifndef BROKEN_VSNPRINTF -int -vasprintf(char **ret, const char *format, va_list ap) -{ - int n; - - if ((n = vsnprintf(NULL, 0, format, ap)) < 0) - goto error; - - *ret = xmalloc(n + 1); - if ((n = vsnprintf(*ret, n + 1, format, ap)) < 0) { - xfree(*ret); - goto error; - } - - return (n); - -error: - *ret = NULL; - return (-1); -} -#else int vasprintf(char **ret, const char *fmt, va_list ap) { @@ -90,4 +68,3 @@ len *= 2; } } -#endif ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ tmux-cvs mailing list tmux-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-cvs