summaryrefslogtreecommitdiff
path: root/lib/asprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asprintf.c')
-rw-r--r--lib/asprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/asprintf.c b/lib/asprintf.c
index 1027e82dd..5359e51f3 100644
--- a/lib/asprintf.c
+++ b/lib/asprintf.c
@@ -29,7 +29,7 @@ int xine_private_vasprintf (char **buffer, const char *format, va_list ap)
{
char *buf = NULL;
int size = 128;
-
+
for (;;)
{
int ret;
@@ -41,11 +41,11 @@ int xine_private_vasprintf (char **buffer, const char *format, va_list ap)
return -1;
}
buf = newbuf;
-
+
va_copy (cp, ap);
ret = vsnprintf (buf, size, format, cp);
va_end (cp);
-
+
if (ret >= 0 && ret < size)
{
*buffer = realloc (buf, ret + 1);