mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 10:23:50 +01:00
bug fix: vsnprintf_s return value 0 isn't error (#373)
Conforming with vsnprintf_s
This commit is contained in:
parent
cdceb28deb
commit
8e79dd6554
@ -97,7 +97,7 @@ void LogCapture::capturef(const char *printf_like_message, ...) {
|
||||
#endif
|
||||
va_end(arglist);
|
||||
|
||||
if (nbrcharacters <= 0) {
|
||||
if (nbrcharacters < 0) {
|
||||
stream() << "\n\tERROR LOG MSG NOTIFICATION: Failure to successfully parse the message";
|
||||
stream() << '"' << printf_like_message << '"' << std::endl;
|
||||
} else if (nbrcharacters > finished_message_len) {
|
||||
|
Loading…
Reference in New Issue
Block a user