Commit eb8dca85 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Instance: win32: Don't ignore potential sprintf_s errors

parent a027be08
......@@ -257,7 +257,9 @@ public:
if ( _vsnprintf_s( psz_msg, _TRUNCATE, format, va ) < 0 )
char psz_ctx[1024];
sprintf_s(psz_ctx, "[%s] (%s:%d) %s", psz_module, psz_file, i_line, psz_msg);
if( sprintf_s( psz_ctx, "[%s] (%s:%d) %s", psz_module, psz_file,
i_line, psz_msg ) < 0 )
logCb( level, ctx, std::string{ psz_ctx } );
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