diff options
-rwxr-xr-x | xdelta3/xdelta3-main.h | 5 | ||||
-rwxr-xr-x | xdelta3/xdelta3.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index 19782df..e27aa45 100755 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h | |||
@@ -79,6 +79,10 @@ | |||
79 | 79 | ||
80 | #define PRINTHDR_SPECIAL -4378291 | 80 | #define PRINTHDR_SPECIAL -4378291 |
81 | 81 | ||
82 | #ifndef XDELTA1PATH | ||
83 | #define XDELTA1PATH "xdelta1" | ||
84 | #endif | ||
85 | |||
82 | /* The number of soft-config variables. */ | 86 | /* The number of soft-config variables. */ |
83 | #define XD3_SOFTCFG_VARCNT 1 | 87 | #define XD3_SOFTCFG_VARCNT 1 |
84 | 88 | ||
@@ -275,6 +279,7 @@ static main_extcomp extcomp_types[] = | |||
275 | { | 279 | { |
276 | /* The entry for xdelta must be first because the program_name is set here. */ | 280 | /* The entry for xdelta must be first because the program_name is set here. */ |
277 | { "xdelta3", "-cfq", "xdelta3", "-dcfq", "X", "\xd6\xc3\xc4", 3, RD_NONEXTERNAL }, | 281 | { "xdelta3", "-cfq", "xdelta3", "-dcfq", "X", "\xd6\xc3\xc4", 3, RD_NONEXTERNAL }, |
282 | { XDELTA1PATH,"delta", XDELTA1PATH, "patch", "1", "%XD", 3, 0 }, | ||
278 | { "bzip2", "-cf", "bzip2", "-dcf", "B", "BZh", 3, 0 }, | 283 | { "bzip2", "-cf", "bzip2", "-dcf", "B", "BZh", 3, 0 }, |
279 | { "gzip", "-cf", "gzip", "-dcf", "G", "\037\213", 2, 0 }, | 284 | { "gzip", "-cf", "gzip", "-dcf", "G", "\037\213", 2, 0 }, |
280 | { "compress", "-cf", "uncompress", "-cf", "Z", "\037\235", 2, 0 }, | 285 | { "compress", "-cf", "uncompress", "-cf", "Z", "\037\235", 2, 0 }, |
diff --git a/xdelta3/xdelta3.c b/xdelta3/xdelta3.c index a26a93c..7e68c57 100755 --- a/xdelta3/xdelta3.c +++ b/xdelta3/xdelta3.c | |||
@@ -4019,7 +4019,8 @@ xd3_srcwin_move_point (xd3_stream *stream, usize_t *next_move_point) | |||
4019 | { | 4019 | { |
4020 | if (ret == XD3_TOOFARBACK) | 4020 | if (ret == XD3_TOOFARBACK) |
4021 | { | 4021 | { |
4022 | ret = XD3_INTERNAL; | 4022 | // TODO: this is still happening |
4023 | ret = XD3_INTERNAL; | ||
4023 | } | 4024 | } |
4024 | return ret; | 4025 | return ret; |
4025 | } | 4026 | } |