mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +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