Commit 8d7e6b98 authored by Jon Lech Johansen's avatar Jon Lech Johansen

* ./src/extras/libc.c: vasprintf bug fix.

parent eeab7415
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* libc.c: Extra libc function for some systems. * libc.c: Extra libc function for some systems.
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: libc.c,v 1.12 2004/01/08 10:27:07 fenrir Exp $ * $Id: libc.c,v 1.13 2004/01/08 11:36:40 jlj Exp $
* *
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -147,7 +147,7 @@ int vlc_vasprintf(char **strp, const char *fmt, va_list ap) ...@@ -147,7 +147,7 @@ int vlc_vasprintf(char **strp, const char *fmt, va_list ap)
for( ;; ) for( ;; )
{ {
/* Try to print in the allocated space. */ /* Try to print in the allocated space. */
n = vsnprintf( p, i_size, fmt, args ); n = vsnprintf( p, i_size, fmt, ap );
/* If that worked, return the string. */ /* If that worked, return the string. */
if (n > -1 && n < i_size) if (n > -1 && n < i_size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment