mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
committed by
Alan Coopersmith
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user