Permalink
Browse files

Change malloc to ckalloc in tcllauncher app init function so that, mo…

…re than

anything, it doesn't complain about implicit definition of malloc on FreeBSD
7.
  • Loading branch information...
1 parent b2701e1 commit e5321c8a7b0de786c2b106dfd50ead151e8ebdeb karl committed Nov 4, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 unix/tclAppInit.c
View
@@ -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: tclAppInit.c,v 1.5 2007-11-24 06:30:10 karl Exp $
+ * RCS: @(#) $Id: tclAppInit.c,v 1.6 2008-11-04 17:54:27 karl Exp $
*/
#include "tcl.h"
@@ -41,7 +41,7 @@ int launcher_main_hook _ANSI_ARGS_((int *argcPtr, char ***argvPtr)) {
int newArgc = *argcPtr + 1;
int i;
- newArgv = (char **)malloc (sizeof(char *) * newArgc);
+ newArgv = (char **)ckalloc (sizeof(char *) * newArgc);
newArgv[0] = **argvPtr;
newArgv[1] = TCLLAUNCHER_FILE;

0 comments on commit e5321c8

Please sign in to comment.