mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
strcat -> strncat
sprintf -> snprintf AKA, really big buffer overflow security fixes. More to come, geez we have holes everywhere.
This commit is contained in:
parent
2652e77b5f
commit
66e0e31b57
29 changed files with 83 additions and 86 deletions
|
@ -82,7 +82,7 @@ Qexpand_squiggle(const char *path, char *dest)
|
|||
|
||||
if (home) {
|
||||
strcpy (dest, home);
|
||||
strcat (dest, path+1); // skip leading ~
|
||||
strncat (dest, path+1, sizeof(dest)); // skip leading ~
|
||||
} else
|
||||
strcpy (dest,path);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue