mirror of
https://github.com/wiiu-env/RPXLoadingModule.git
synced 2024-11-22 09:59:17 +01:00
Fix opening /vol/content when redirecting it to a specfic path
This commit is contained in:
parent
bff0f823f0
commit
b00a566726
@ -519,7 +519,9 @@ static inline void replaceContentPath(char *pathForCheck, int pathForCheckSize,
|
||||
int subStrLen = strlen(pathForCheck) - skipLen;
|
||||
if (subStrLen <= 0) {
|
||||
pathForCheck[0] = '\0';
|
||||
strncat(pathForCheck, replaceWith, sizeof(pathForCheck) - 1);
|
||||
if (strlen(replaceWith) + 1 <= pathForCheckSize) {
|
||||
memcpy(pathForCheck, replaceWith, strlen(replaceWith) + 1);
|
||||
}
|
||||
} else {
|
||||
char pathCopy[subStrLen + 1];
|
||||
pathCopy[0] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user