diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2009-11-30 21:37:30 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2009-11-30 21:37:30 +0000 |
commit | 140ffc62a23b22f84656ae768cfe719658aedbc2 (patch) | |
tree | 59a2e2ac37121ba9c8b11254f1671432e900db94 /lib/asprintf.c | |
parent | 5f4681b57dd227a2d2a2dd9050fb6103daa6fabd (diff) | |
download | xine-lib-140ffc62a23b22f84656ae768cfe719658aedbc2.tar.gz xine-lib-140ffc62a23b22f84656ae768cfe719658aedbc2.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); |