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:
parent
f1542f1d71
commit
1324b0ca9f
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue