Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5bc76cd

Browse files
committed
add casts for __SC__
1 parent 8318f2f commit 5bc76cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/Compat/getwd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ getwd(cwd)
6262
sprintf(cwd, "I/O error %d in PBHGetVol", err);
6363
return NULL;
6464
}
65-
ecwd= strchr(p2cstr((unsigned char*)cwd), EOS);
65+
ecwd= strchr((const char *)p2cstr((unsigned char*)cwd), EOS);
6666
ebuf= buf;
6767
*ebuf = EOS;
6868

@@ -81,7 +81,7 @@ getwd(cwd)
8181
return NULL;
8282
}
8383
dirid= pb.d.ioDrParID;
84-
ebuf += strlen(p2cstr((unsigned char *)ebuf));
84+
ebuf += strlen((const char *)p2cstr((unsigned char *)ebuf));
8585
/* Should check for buf overflow */
8686
}
8787
}

0 commit comments

Comments
 (0)