mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
Remove memcpy from "Unknown command" error printing
This commit is contained in:
parent
4017a6d864
commit
798267d223
1 changed files with 1 additions and 6 deletions
|
@ -694,12 +694,7 @@ void C_DoCommand (const char *cmd, int keynum)
|
|||
}
|
||||
else
|
||||
{
|
||||
char cmdname[64];
|
||||
size_t minlen = MIN<size_t> (len, 63);
|
||||
|
||||
memcpy (cmdname, beg, minlen);
|
||||
cmdname[len] = 0;
|
||||
Printf ("Unknown command \"%s\"\n", cmdname);
|
||||
Printf ("Unknown command \"%.*s\"\n", len, beg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue