commit | 5021ebc892ebc831cf3ec5b9de2c70717a08b074 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sat Mar 22 22:07:13 2008 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sat Mar 22 22:07:13 2008 +0000 |
tree | e3cb4c648d950a4889a4ad0b5b8779dbc1c9d935 | |
parent | da9968371ebc6de73ac6a640aeb062abae9ac59f [diff] [blame] |
Properly terminate file name.
diff --git a/Python/import.c b/Python/import.c index 8f83410..d201dae 100644 --- a/Python/import.c +++ b/Python/import.c
@@ -997,7 +997,7 @@ } strncpy(py, file, len-1); - py[len] = '\0'; + py[len-1] = '\0'; if (stat(py, &statbuf) == 0 && S_ISREG(statbuf.st_mode)) { u = PyUnicode_DecodeFSDefault(py);