[vlc-devel] commit: WInCE: fix infinite loop in vasprintf replacement ( Geoffroy Couprie )
git version control
git at videolan.org
Fri Feb 20 10:54:37 CET 2009
vlc | branch: master | Geoffroy Couprie <geo.couprie at gmail.com> | Fri Feb 20 10:50:18 2009 +0100| [ee2ac0d64fa697b3eb53a276e6537c475cc5b3a3] | committer: Geoffroy Couprie
WInCE: fix infinite loop in vasprintf replacement
fixed by Pierre Ynard
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ee2ac0d64fa697b3eb53a276e6537c475cc5b3a3
---
include/vlc_fixups.h | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/include/vlc_fixups.h b/include/vlc_fixups.h
index 726bb9e..87626e8 100644
--- a/include/vlc_fixups.h
+++ b/include/vlc_fixups.h
@@ -77,8 +77,7 @@ static inline int vasprintf (char **strp, const char *fmt, va_list ap)
}
/* Else try again with more space. */
- if (n == -1)
- size *= 2; /* twice the old size */
+ size *= 2; /* twice the old size */
if ((np = (char *) realloc (res, size)) == NULL)
{
More information about the vlc-devel
mailing list