CTM problem
Stephen Montgomery-Smith
stephen at math.missouri.edu
Mon Jan 19 21:48:10 PST 2004
Stephen Montgomery-Smith wrote:
> Peter Jeremy wrote:
>
>> CTM seems to have died sometime after 2004-Jan-17 0055 UTC - the
>> last delta mailed or available via FTP is cvs-cur.9944.gz
>>
>
>
The enclosed patch seems to fix the problem, well, at least it is a band aid.
cvs-cur should start up again tonight.
(The setlinebuf is added so that the log files are a bit more informative for me.)
Stephen
-------------- next part --------------
--- mkctm.c-orig Mon Jan 19 23:27:59 2004
+++ mkctm.c Mon Jan 19 23:30:53 2004
@@ -217,7 +217,7 @@
{
u_long l = s2.st_size + 2;
u_char *cmd = alloca(strlen(buf1)+strlen(buf2)+100);
- u_char *ob = alloca(l), *p;
+ u_char *ob = malloc(l), *p;
int j;
FILE *F;
@@ -291,6 +291,7 @@
s_sub_files++;
s_sub_bytes += s2.st_size;
}
+ free(ob);
}
finish:
munmap(p1, s1.st_size);
@@ -547,6 +548,8 @@
logf = fopen(optarg, "w");
if (!logf)
err(1, "%s", optarg);
+ else
+ setlinebuf(logf);
break;
case 'q':
verbose--;
More information about the ctm-users
mailing list