diff options
author | Colin Harrison <colin.harrison@virgin.net> | 2010-12-10 00:08:24 +0000 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-12-18 00:22:29 -0800 |
commit | 1324b0ca9f8a7fdaf03b374c75eb3c9df407c2f1 (patch) | |
tree | 5b77c2b9aad70c8e36f61ca94574ccb0736d2277 | |
parent | f1542f1d716723cba7c323849086585635121893 (diff) |
Typo in xserver Xvasprintf()
I needed this patch in the wrapper around vsnprintf() in os/xprintf.c
(MinGW for Windows build) to correct various crashes.
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | os/xprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/xprintf.c b/os/xprintf.c index 0a8bd0687..254b7374a 100644 --- a/os/xprintf.c +++ b/os/xprintf.c @@ -108,7 +108,7 @@ Xvasprintf(char **ret, const char * _X_RESTRICT_KYWD format, va_list va) return -1; vsnprintf(*ret, size + 1, format, va); - ret[size] = 0; + (*ret)[size] = 0; return size; #endif } |