mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
Fix a pile of sizeof goofs.
While scan-build wasn't what I was looking for, it has proven useful anyway: many of the sizeof errors were just noise, but a few were actual bugs (allocating too much or too little memory).
This commit is contained in:
parent
575a67b2a1
commit
8fd5be0ee0
15 changed files with 16 additions and 16 deletions
|
@ -100,7 +100,7 @@ COM_InitArgv (int argc, const char **argv)
|
|||
safe = false;
|
||||
|
||||
largv = (const char **) calloc (1, (argc + NUM_SAFE_ARGVS + 1) *
|
||||
sizeof (const char **));
|
||||
sizeof (const char *));
|
||||
|
||||
for (com_argc = 0, len = 0; com_argc < argc; com_argc++) {
|
||||
largv[com_argc] = argv[com_argc];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue