summaryrefslogtreecommitdiff
path: root/src/httrack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/httrack.c')
-rw-r--r--src/httrack.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/httrack.c b/src/httrack.c
index 020d4f8..e8e5cd3 100644
--- a/src/httrack.c
+++ b/src/httrack.c
@@ -223,6 +223,15 @@ int main(int argc, char **argv) {
signal_handlers();
hts_init();
+
+ // Check version compatibility
+ if (hts_sizeof_opt() != sizeof(httrackp)) {
+ fprintf(stderr,
+ "incompatible current httrack library version %s, expected version %s",
+ hts_version(), HTTRACK_VERSIONID);
+ abortLog("incompatible httrack library version, please update both httrack and its library");
+ }
+
opt = global_opt = hts_create_opt();
assert(opt->size_httrackp == sizeof(httrackp));