(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 120f57b865
commit c09b7e7fac
1 changed files with 1 additions and 1 deletions

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 */