Remove memcpy from "Unknown command" error printing

This commit is contained in:
Randy Heit 2014-12-26 17:29:13 -06:00
parent 4017a6d864
commit 798267d223

View file

@ -694,12 +694,7 @@ void C_DoCommand (const char *cmd, int keynum)
} }
else else
{ {
char cmdname[64]; Printf ("Unknown command \"%.*s\"\n", len, beg);
size_t minlen = MIN<size_t> (len, 63);
memcpy (cmdname, beg, minlen);
cmdname[len] = 0;
Printf ("Unknown command \"%s\"\n", cmdname);
} }
} }
} }