From ee1c1af845f765ddad1fe2d8567fcedc5fce4ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net> Date: Sat, 28 Dec 2024 19:25:19 -0500 Subject: [PATCH] Fix hash comparison --- exec/load/syncterm_cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/load/syncterm_cache.js b/exec/load/syncterm_cache.js index de52169c84..f1df97ebd1 100644 --- a/exec/load/syncterm_cache.js +++ b/exec/load/syncterm_cache.js @@ -94,7 +94,7 @@ SyncTERMCache.prototype.upload = function (fname, cache_fname) if (idx !== -1) { idx += 2; idx += cache_fname.length; - if (hash == lst.substr(idx, idx + 32)) { + if (hash == lst.substr(idx, 32)) { f.close(); return true; } -- GitLab