summaryrefslogtreecommitdiffstats
path: root/macosx/tclMacOSXFCmd.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2025-05-05 06:53:48 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2025-05-05 06:53:48 (GMT)
commitc7d153cbbbfb7fd6c4160959eeb59ab22e8d5f9b (patch)
tree0aa5de1a004337807cff77eef3d4fd61f8a16407 /macosx/tclMacOSXFCmd.c
parent4078b3aa7931bf42982948716281fdef0a560802 (diff)
downloadtcl-c7d153cbbbfb7fd6c4160959eeb59ab22e8d5f9b.zip
tcl-c7d153cbbbfb7fd6c4160959eeb59ab22e8d5f9b.tar.gz
tcl-c7d153cbbbfb7fd6c4160959eeb59ab22e8d5f9b.tar.bz2
Missing TclOOM() calls, which produce a panic when Tcl_InitStringRep() fails
Diffstat (limited to 'macosx/tclMacOSXFCmd.c')
-rw-r--r--macosx/tclMacOSXFCmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tclMacOSXFCmd.c b/macosx/tclMacOSXFCmd.c
index 16a728f..251abf3 100644
--- a/macosx/tclMacOSXFCmd.c
+++ b/macosx/tclMacOSXFCmd.c
@@ -687,7 +687,7 @@ UpdateStringOfOSType(
Tcl_Encoding encoding;
char src[5];
- TclOOM(dst, size);
+ TclOOM(dst, size+1);
src[0] = (char) (osType >> 24);
src[1] = (char) (osType >> 16);