mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-22 07:51:20 +00:00
sprintf -> snprintf
This commit is contained in:
parent
37e42f35c6
commit
cba34a7572
1 changed files with 1 additions and 1 deletions
|
@ -899,7 +899,7 @@ void M_Keys_Key (int k)
|
|||
}
|
||||
else if (k != '`')
|
||||
{
|
||||
sprintf (cmd, "bind %s \"%s\"\n", Key_KeynumToString (k), bindnames[keys_cursor][0]);
|
||||
snprintf (cmd, sizeof(cmd), "bind %s \"%s\"\n", Key_KeynumToString (k), bindnames[keys_cursor][0]);
|
||||
Cbuf_InsertText (cmd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue