From 5bc76cdaabbd1277b21aec8cc4e474a67d046267 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 17 Feb 1995 14:24:11 +0000 Subject: [PATCH] add casts for __SC__ --- Mac/Compat/getwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mac/Compat/getwd.c b/Mac/Compat/getwd.c index e9a54552981..23810d1c423 100644 --- a/Mac/Compat/getwd.c +++ b/Mac/Compat/getwd.c @@ -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 */ } }