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>
This commit is contained in:
Colin Harrison 2010-12-10 00:08:24 +00:00 committed by Alan Coopersmith
parent f1542f1d71
commit 1324b0ca9f
1 changed files with 1 additions and 1 deletions

View File

@ -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
}