Skip to content

Commit 418e52c

Browse files
committed
Use str_format instead of snprintf
1 parent 3e60998 commit 418e52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/client/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4939,7 +4939,7 @@ int main(int argc, const char **argv)
49394939
if(!pConsole->ExecuteFile(s_aConfigDomains[ConfigDomain].m_aConfigPath))
49404940
{
49414941
char aError[2048];
4942-
snprintf(aError, sizeof(aError), "Failed to load config from '%s'.", s_aConfigDomains[ConfigDomain].m_aConfigPath);
4942+
str_format(aError, sizeof(aError), "Failed to load config from '%s'.", s_aConfigDomains[ConfigDomain].m_aConfigPath);
49434943
log_error("client", "%s", aError);
49444944
pClient->ShowMessageBox({.m_pTitle = "Config File Error", .m_pMessage = aError});
49454945
PerformAllCleanup();

0 commit comments

Comments
 (0)