summaryrefslogtreecommitdiffstats
path: root/mac/tclMacTest.c
diff options
context:
space:
mode:
authorjingham <jingham@noemail.net>1998-11-10 06:49:19 (GMT)
committerjingham <jingham@noemail.net>1998-11-10 06:49:19 (GMT)
commite3c04845583003a0742f88e1723a6bb318e64b83 (patch)
tree426ae9ad4e25e36702e7b3c1ea424748f2fde331 /mac/tclMacTest.c
parentbe904d29b99c51d25ad9a0dcb1bfd4596079825c (diff)
downloadtcl-e3c04845583003a0742f88e1723a6bb318e64b83.zip
tcl-e3c04845583003a0742f88e1723a6bb318e64b83.tar.gz
tcl-e3c04845583003a0742f88e1723a6bb318e64b83.tar.bz2
Fixed a bug in the resource command when the file was opened twice. Fixed a bug in the testWriteTextResource command - it wrote one too many bytes. Factored out the common code from the .pch files FspLocationFromPath - make path a CONST
FossilOrigin-Name: 784962bdc874b00d3e1e5b2c6c732347a11b617f
Diffstat (limited to 'mac/tclMacTest.c')
-rw-r--r--mac/tclMacTest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mac/tclMacTest.c b/mac/tclMacTest.c
index 3824031..3c982c5 100644
--- a/mac/tclMacTest.c
+++ b/mac/tclMacTest.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclMacTest.c,v 1.2 1998/09/14 18:40:07 stanton Exp $
+ * RCS: @(#) $Id: tclMacTest.c,v 1.3 1998/11/10 06:49:51 jingham Exp $
*/
#define TCL_TEST
@@ -188,11 +188,11 @@ WriteTextResource(
strcpy((char *) resourceName, rsrcName);
c2pstr((char *) resourceName);
- dataHandle = NewHandle(strlen(data) + 1);
+ dataHandle = NewHandle(strlen(data));
HLock(dataHandle);
strcpy(*dataHandle, data);
HUnlock(dataHandle);
-
+
/*
* Add the resource to the file and close it.
*/