Differences From:
File
src/diff.c
part of check-in
[4c22ae52fd]
- Changes to the diff algorithm to put bounds on run-time for very large
files with many differences. (This came up on the previous check-in when
you try to diff the two versions of sqlite3.c.)
by
drh on
2007-11-25 17:13:14.
[view]
To:
File
src/diff.c
part of check-in
[7e9e5fea77]
- Fix a bug in the unified diff generator.
by
drh on
2007-11-27 03:30:50.
Also file
src/diff.c
part of check-in
[d0305b305a]
- Merged mainline into my branch to get the newest application.
by
aku on
2007-12-05 08:07:46.
[view]
@@ -288,15 +288,16 @@
}
}
}
if( d>MAX ){
- R = malloc( sizeof(R[0])*6 );
+ R = malloc( sizeof(R[0])*7 );
R[0] = 0;
R[1] = X;
R[2] = Y;
R[3] = 0;
R[4] = 0;
R[5] = 0;
+ R[6] = 0;
}else{
/* Reuse M[] as follows:
**
** M[d][1] = 1 if a line is inserted or 0 if a line is deleted.