sprintf -> snprintf

This commit is contained in:
Danne 2000-05-20 10:30:09 +00:00
parent 37e42f35c6
commit cba34a7572

View file

@ -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);
}