summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c2
1 files changed, 1 insertions, 1 deletions
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 @@ get_sourcefile(const char *file)
}
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);
g_3485833 Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/macosx
Commit message (Expand)AuthorAgeFilesLines
* Merge 8.6. Backport some formatting from 9.1jan.nijtmans2025-12-031-12/+14
|\
| * Fix [6f1dd8a1be]: tclMacOSXNotify.c: function pointer cast to incompatible typejan.nijtmans2025-12-031-1/+1
* | Merge 8.6jan.nijtmans2025-08-121-5/+12
|\ \ | |/
| * Fix [992f94d847]: avoid misaligned pointers in macOS file attribute functionsjan.nijtmans2025-08-121-5/+12
| |\
| | * Alternative proposed fix for [992f94d847]: avoid misaligned pointers in macOS...jan.nijtmans2025-08-121-5/+7
| |/
| * Backport some code formatting from 9.0. Fix sentinelsjan.nijtmans2025-08-121-31/+32
| * Make a start, upgrading to libtommath 1.3jan.nijtmans2024-03-312-12/+12
* | Update macOS info in README.md and macosx/READMEoehhar2025-06-171-16/+16
* | Missing TclOOM() calls, which produce a panic when Tcl_InitStringRep() failsjan.nijtmans2025-05-051-1/+1
* | Remove a lot of dead code: macOS < 10.9 is no longer supportedjan.nijtmans2024-12-043-286/+1
|\ \
| * | Remove a lot of dead code: macOS < 10.9 is no longer supportedjan.nijtmans2024-12-043-288/+2
* | | Remove a lot of stuff meant for macOS < 10.9jan.nijtmans2024-10-166-3175/+2
|\ \ \ | |/ /
| * | Remove a lot of stuff meant for macOS < 10.9jan.nijtmans2024-10-146-3187/+2
| * | Whitespace changesjan.nijtmans2024-08-221-2/+2
* | | Improve bunch of error-messagesjan.nijtmans2024-08-151-1/+1
|\ \ \ | |/ /
| * | Improve bunch of error-messagesjan.nijtmans2024-08-151-1/+1
* | | Space before tab is an extremely unlikely to be correct indentation patterndkf2024-06-041-2/+2
* | | Backout the "dullest commit ever" (not my words ....). It breaks the build. jan.nijtmans2024-05-142-10/+10
* | | Clean up a lot of small whitespace issues dkf2024-05-132-10/+10
* | | More whitespace cleanupdkf2024-05-101-1/+0
* | | Update MacOS project.pbxproj file toojan.nijtmans2024-04-171-2/+2
|\ \ \ | |/ /
| * | Fix "make dist"jan.nijtmans2024-04-17