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:
Bill Currie 2000-03-04 06:47:48 +00:00
parent 54e2cafda8
commit fdfa130c9b

View file

@ -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';