mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 14:42:06 +00:00
change strncat to strcat. I keep forgetting that the n limits the number of
chars catted, not the length of the destination string.
This commit is contained in:
parent
54e2cafda8
commit
fdfa130c9b
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ void COM_InitArgv (int argc, char **argv)
|
|||
{
|
||||
strncat (com_cmdline, argv[i], len);
|
||||
assert(len - strlen(com_cmdline) > 0);
|
||||
strncat (com_cmdline, " ", len);
|
||||
strcat (com_cmdline, " ");
|
||||
}
|
||||
com_cmdline[len - 1] = '\0';
|
||||
|
||||
|
|
Loading…
Reference in a new issue