(svn r8090) -[win32] Fix (r8089): for *nprintf 'ret = count' NOT 'ret = 0'...

This commit is contained in:
Darkvater 2007-01-13 13:13:32 +00:00
parent 1b6467b0e3
commit 47a7b714e3

View File

@ -169,7 +169,7 @@ int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
{
int ret;
ret = _vsnprintf(str, size, format, ap);
if (ret < 0 || ret == 0) str[size - 1] = '\0';
if (ret < 0 || ret == size) str[size - 1] = '\0';
return ret;
}
#endif /* _MSC_VER */