fix
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
Nishi 2026-09-14 03:50:13 +09:00
commit 421cf15574

View file

@ -206,11 +206,13 @@ static void MwDirectoryJoinSingle(char* target, char* p) {
}
char* MwDirectoryJoin(char* a, char* b) {
char* p = MwStringDuplicate(a);
char* p = malloc(strlen(a) + 3 + strlen(b));
char* bdup = MwStringDuplicate(b);
char* b2 = bdup;
int i;
strcpy(p, a);
for(i = strlen(p) - 1; i >= 0; i--) {
if(p[i] == DIRSEP) {
p[i] = 0;