mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
Addresses #1508 Fix build problem
git-svn-id: file:///svn/toku/tokudb@9715 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
319e60ebb0
commit
a4a605488a
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ vsnprintf(char *str, size_t size, const char *format, va_list ap) {
|
|||
int r = _vsnprintf(str, size, format, ap);
|
||||
if (str && size>0) {
|
||||
str[size-1] = '\0'; //Always null terminate.
|
||||
if (r<0 && errno==ERANGE);
|
||||
if (r<0 && errno==ERANGE) {
|
||||
r = strlen(str)+1; //Mimic linux return value.
|
||||
//May be too small, but it does
|
||||
//at least indicate overflow
|
||||
|
|
Loading…
Add table
Reference in a new issue