Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8318f2f commit 5bc76cdCopy full SHA for 5bc76cd
1 file changed
Mac/Compat/getwd.c
@@ -62,7 +62,7 @@ getwd(cwd)
62
sprintf(cwd, "I/O error %d in PBHGetVol", err);
63
return NULL;
64
}
65
- ecwd= strchr(p2cstr((unsigned char*)cwd), EOS);
+ ecwd= strchr((const char *)p2cstr((unsigned char*)cwd), EOS);
66
ebuf= buf;
67
*ebuf = EOS;
68
@@ -81,7 +81,7 @@ getwd(cwd)
81
82
83
dirid= pb.d.ioDrParID;
84
- ebuf += strlen(p2cstr((unsigned char *)ebuf));
+ ebuf += strlen((const char *)p2cstr((unsigned char *)ebuf));
85
/* Should check for buf overflow */
86
87
0 commit comments