diff options
author | Guido van Rossum <guido@python.org> | 1996-06-26 21:07:08 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-06-26 21:07:08 (GMT) |
commit | 236f62da7a702ce53d349b925ba7510b32f02c99 (patch) | |
tree | ca6b4e6e36bc845d2c90585c74a4887a4fa19706 /Python/importdl.c | |
parent | f21506076d855e9e87f435a29cfca414701d3792 (diff) | |
download | cpython-236f62da7a702ce53d349b925ba7510b32f02c99.zip cpython-236f62da7a702ce53d349b925ba7510b32f02c99.tar.gz cpython-236f62da7a702ce53d349b925ba7510b32f02c99.tar.bz2 |
Corrections to aix_loaderror(), by Manus Hand.
Diffstat (limited to 'Python/importdl.c')
-rw-r--r-- | Python/importdl.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Python/importdl.c b/Python/importdl.c index 832f022..e05e50f 100644 --- a/Python/importdl.c +++ b/Python/importdl.c @@ -493,7 +493,7 @@ load_dynamic_module(name, pathname, fp) void aix_loaderror(char *pathname) { - char *message[8], errbuf[1024]; + char *message[1024], errbuf[1024]; int i,j; struct errtab { @@ -509,7 +509,7 @@ void aix_loaderror(char *pathname) {L_ERROR_MEMBER, "file not an archive or does not contain requested member:"}, {L_ERROR_TYPE, "symbol table mismatch:"}, - {L_ERROR_ALIGN, "text allignment in file is wrong."}, + {L_ERROR_ALIGN, "text alignment in file is wrong."}, {L_ERROR_SYSTEM, "System error:"}, {L_ERROR_ERRNO, NULL} }; @@ -519,13 +519,15 @@ void aix_loaderror(char *pathname) sprintf(errbuf, " from module %.200s ", pathname); - if (!loadquery(1, &message[0], sizeof(message))) + if (!loadquery(1, &message[0], sizeof(message))) { ERRBUF_APPEND(strerror(errno)); + ERRBUF_APPEND("\n"); + } for(i = 0; message[i] && *message[i]; i++) { int nerr = atoi(message[i]); for (j=0; j<LOAD_ERRTAB_LEN ; j++) { - if (nerr == load_errtab[i].errno && load_errtab[i].errstr) - ERRBUF_APPEND(load_errtab[i].errstr); + if (nerr == load_errtab[j].errno && load_errtab[j].errstr) + ERRBUF_APPEND(load_errtab[j].errstr); } while (isdigit(*message[i])) message[i]++ ; ERRBUF_APPEND(message[i]); |