mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +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
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue