Commit e0259c8a authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1508 Fix build problem

git-svn-id: file:///svn/toku/tokudb@9715 c7de825b-a66e-492c-adef-691d508d4ae1
parent c916db84
...@@ -220,7 +220,7 @@ vsnprintf(char *str, size_t size, const char *format, va_list ap) { ...@@ -220,7 +220,7 @@ vsnprintf(char *str, size_t size, const char *format, va_list ap) {
int r = _vsnprintf(str, size, format, ap); int r = _vsnprintf(str, size, format, ap);
if (str && size>0) { if (str && size>0) {
str[size-1] = '\0'; //Always null terminate. 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. r = strlen(str)+1; //Mimic linux return value.
//May be too small, but it does //May be too small, but it does
//at least indicate overflow //at least indicate overflow
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment