add casts for __SC__
This commit is contained in:
parent
8318f2fb8f
commit
5bc76cdaab
|
@ -62,7 +62,7 @@ getwd(cwd)
|
|||
sprintf(cwd, "I/O error %d in PBHGetVol", err);
|
||||
return NULL;
|
||||
}
|
||||
ecwd= strchr(p2cstr((unsigned char*)cwd), EOS);
|
||||
ecwd= strchr((const char *)p2cstr((unsigned char*)cwd), EOS);
|
||||
ebuf= buf;
|
||||
*ebuf = EOS;
|
||||
|
||||
|
@ -81,7 +81,7 @@ getwd(cwd)
|
|||
return NULL;
|
||||
}
|
||||
dirid= pb.d.ioDrParID;
|
||||
ebuf += strlen(p2cstr((unsigned char *)ebuf));
|
||||
ebuf += strlen((const char *)p2cstr((unsigned char *)ebuf));
|
||||
/* Should check for buf overflow */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue