-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ void makelowercp(char *name) | |
assert(name); | ||
size_t len = strlen(name); | ||
assert(len < 1024); | ||
strncpy(convertbuf, name, 1024); | ||
memcpy(convertbuf, name, 1024); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
whitedragon0000
Author
Contributor
|
||
lc(convertbuf, len); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -622,7 +622,7 @@ void makefilenamecache(void) | |
{ | ||
return; | ||
} | ||
strncpy(target, (char *)pak_header + hpos + 12, PACKFILE_PATH_MAX); | ||
memcpy(target, (char *)pak_header + hpos + 12, PACKFILE_PATH_MAX); | ||
fnlc(target); | ||
List_InsertAfter(filenamelist, (void *) hpos, target); | ||
hpos += readlsb32(pak_header + hpos); | ||
|
@@ -695,7 +695,7 @@ int openreadaheadpackfile(const char *filename, const char *packfilename, int re | |
makefilenamecache(); | ||
} | ||
|
||
strncpy(target, filename, PACKFILE_PATH_MAX); | ||
memcpy(target, filename, PACKFILE_PATH_MAX); | ||
This comment has been minimized.
Sorry, something went wrong.
jbeich
Contributor
|
||
fnlc(target); | ||
|
||
n = List_GetNodeByName(filenamelist, target); | ||
|
Another game launch crash due to length of the target buffer being larger than source buffer.