22 lines
670 B
Plaintext
22 lines
670 B
Plaintext
$OpenBSD: patch-tcl_tclBasic_c,v 1.3 2005/12/31 02:09:46 fgsch Exp $
|
|
--- tcl/tclBasic.c.orig Sat Dec 31 01:55:25 2005
|
|
+++ tcl/tclBasic.c Sat Dec 31 01:55:38 2005
|
|
@@ -657,7 +657,7 @@ Tcl_Eval(interp, cmd, flags, termPtr)
|
|
length = strlen(iPtr->result);
|
|
if ((limit - dst) < length) {
|
|
char *newCopy;
|
|
- int delta;
|
|
+ size_t delta;
|
|
|
|
copySize = length + 10 + dst - copy;
|
|
newCopy = (char *) malloc((unsigned) copySize);
|
|
@@ -870,7 +870,7 @@ Tcl_Eval(interp, cmd, flags, termPtr)
|
|
|
|
if (dst >= limit) {
|
|
char *newCopy;
|
|
- int delta;
|
|
+ size_t delta;
|
|
|
|
copySize *= 2;
|
|
newCopy = (char *) malloc((unsigned) copySize);
|