mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
52bd9c4f01
files with less memory. GNU Diff often can not work with files larger than 33% of datasize (from limit) due to memory exhaustion. PR: ports/50097 Submitted by: risner@stdio.com
23 lines
354 B
C
23 lines
354 B
C
--- diff.c.orig Wed Nov 13 05:31:26 1991
|
|
+++ diff.c Wed Mar 19 01:31:23 2003
|
|
@@ -176,9 +176,10 @@
|
|
return (a > b ? a : b);
|
|
}
|
|
|
|
+sig_t
|
|
done()
|
|
{
|
|
- if (tempfile)
|
|
+ if (tempfile[0])
|
|
unlink(tempfile);
|
|
exit(status);
|
|
}
|
|
@@ -198,7 +199,6 @@
|
|
char *p;
|
|
{
|
|
register char *q;
|
|
- char *realloc();
|
|
|
|
if ((q = realloc(p, (unsigned)n)) == NULL)
|
|
noroom();
|