summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authormdejong <mdejong@noemail.net>2002-06-15 21:02:20 (GMT)
committermdejong <mdejong@noemail.net>2002-06-15 21:02:20 (GMT)
commit87f74904ef626f85b77c33424973ae7896344e58 (patch)
tree822d094aa865df1eef534aabf6635b5e8c1fee71 /generic
parentebc1b69ed2a37d00e8b7a0dfd8a2a66ae01e83cb (diff)
downloadtk-87f74904ef626f85b77c33424973ae7896344e58.zip
tk-87f74904ef626f85b77c33424973ae7896344e58.tar.gz
tk-87f74904ef626f85b77c33424973ae7896344e58.tar.bz2
* generic/tkOption.c (Tk_GetOption): Allocate
memory with ckalloc not malloc. This keeps Tk from erroring out when built with TCL_MEM_DEBUG. FossilOrigin-Name: 03e2b01f81c64038608049573d7ee03104e16c1f
Diffstat (limited to 'generic')
-rw-r--r--generic/tkOption.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkOption.c b/generic/tkOption.c
index 64454f2..d562e6c 100644
--- a/generic/tkOption.c
+++ b/generic/tkOption.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkOption.c,v 1.12 2002/04/12 07:29:55 hobbs Exp $
+ * RCS: @(#) $Id: tkOption.c,v 1.13 2002/06/15 21:02:20 mdejong Exp $
*/
#include "tkPort.h"
@@ -555,7 +555,7 @@ Tk_GetOption(tkwin, name, className)
*/
classNameLength = (unsigned int)(masqName - name);
- masqClass = (char *)malloc(classNameLength + 1);
+ masqClass = (char *)ckalloc(classNameLength + 1);
strncpy(masqClass, name, classNameLength);
masqClass[classNameLength] = '\0';