openbsd-ports/net/icb/patches/patch-tcl_tclBasic_c

22 lines
670 B
Plaintext

$OpenBSD: patch-tcl_tclBasic_c,v 1.4 2010/05/22 14:23:48 espie Exp $
--- tcl/tclBasic.c.orig Fri Feb 24 22:19:53 1995
+++ tcl/tclBasic.c Sat May 22 16:16:44 2010
@@ -656,7 +656,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);
@@ -869,7 +869,7 @@ Tcl_Eval(interp, cmd, flags, termPtr)
if (dst >= limit) {
char *newCopy;
- int delta;
+ size_t delta;
copySize *= 2;
newCopy = (char *) malloc((unsigned) copySize);