diff options
author | Guido van Rossum <guido@python.org> | 1995-02-21 21:02:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-21 21:02:46 (GMT) |
commit | 3097c3a87e10158d2df5234457e3d07612d13afc (patch) | |
tree | d1816cf6cf7693cb28d7af416980b86c5c23ede9 /Python/importdl.c | |
parent | edea408f8824191f519fbb5e91789de32f6aa5da (diff) | |
download | cpython-3097c3a87e10158d2df5234457e3d07612d13afc.zip cpython-3097c3a87e10158d2df5234457e3d07612d13afc.tar.gz cpython-3097c3a87e10158d2df5234457e3d07612d13afc.tar.bz2 |
change ifdefs and fix "%#s" format
Diffstat (limited to 'Python/importdl.c')
-rw-r--r-- | Python/importdl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index 5c6b208..6f2016d 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -145,7 +145,7 @@ typedef void (*dl_funcptr)(); #ifdef USE_MAC_SHARED_LIBRARY #include <CodeFragments.h> -#ifdef __SC__ /* Really just an older version of Universal Headers */ +#ifdef __CFM68K__ /* Really just an older version of Universal Headers */ #define CFragConnectionID ConnectionID #define kLoadCFrag 0x01 #endif @@ -228,7 +228,7 @@ load_dynamic_module(name, pathname) if ( err ) { char buf[512]; - sprintf(buf, "%#s: %s", errMessage, PyMac_StrError(err)); + sprintf(buf, "%.*s: %s", errMessage[0], errMessage+1, PyMac_StrError(err)); err_setstr(ImportError, buf); return NULL; } |