]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
change ifdefs and fix "%#s" format
authorGuido van Rossum <guido@python.org>
Tue, 21 Feb 1995 21:02:46 +0000 (21:02 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 21 Feb 1995 21:02:46 +0000 (21:02 +0000)
Python/importdl.c

index 5c6b208c8fdb88905b12ef570f0c3cea5a6df6f6..6f2016d60f77b2effb048d4bc0c43e8ea9aff3fe 100644 (file)
@@ -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;
                }