mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
vsnprintf()/vsprintf() does not necessarily return -1 when failed.
This commit is contained in:
parent
3f968933f4
commit
3128f425b8
@ -213,10 +213,10 @@ namespace TagLib
|
||||
|
||||
va_end(args);
|
||||
|
||||
if(length != -1)
|
||||
if(length > 0)
|
||||
return String(buf);
|
||||
else
|
||||
return String::null;
|
||||
return String();
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user