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);