diff options
| author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2009-11-30 21:24:21 +0000 |
|---|---|---|
| committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2009-11-30 21:24:21 +0000 |
| commit | add0bcc4c9191cb8980d0b6935ca5d51a9928d82 (patch) | |
| tree | 1ef3c98b5183a299107193ceca9135e9f3c57bfc /lib/asprintf.c | |
| parent | 6d410af50e98533e07dd8ebb8fdd3870192f8a73 (diff) | |
| download | xine-lib-add0bcc4c9191cb8980d0b6935ca5d51a9928d82.tar.gz xine-lib-add0bcc4c9191cb8980d0b6935ca5d51a9928d82.tar.bz2 | |
Trim trailing space & reduce space+tab.
Diffstat (limited to 'lib/asprintf.c')
| -rw-r--r-- | lib/asprintf.c | 6 |
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); |
