mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 01:00:53 +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 != '`')
|
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);
|
Cbuf_InsertText (cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue