From 67a1132938eadadd924086fd762a1d89634e7091 Mon Sep 17 00:00:00 2001 From: Aleksy Barcz Date: Tue, 14 Jun 2016 10:12:48 +0200 Subject: [PATCH] fix for long szbase paths + fixed algorithm recalculating szbase paths from patches in ss client: curr_path = patch(prev_path) + bug affected szbase paths longer than 126. Now the algorithm should support properly paths of length up to 126*126 --- wx/sync/ssclient.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/wx/sync/ssclient.cc b/wx/sync/ssclient.cc index e9e3c58f1..2f41862e9 100644 --- a/wx/sync/ssclient.cc +++ b/wx/sync/ssclient.cc @@ -1424,6 +1424,7 @@ char* Client::ExecuteScript(const char* b, const char* s) { { \ VAL = 0; \ uint8_t t = (s[i++] - 1) * 126; \ + VAL += t; \ t = s[i++] - 1; \ VAL += t; \ }