From e19893b91326e53868136bbf0f2cf6835344cc7c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 6 May 2016 09:13:16 +0200 Subject: tracker/hatire: prevent infinite loop when no end marker and start at index 0 --- tracker-hatire/ftnoir_tracker_hat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-hatire') diff --git a/tracker-hatire/ftnoir_tracker_hat.cpp b/tracker-hatire/ftnoir_tracker_hat.cpp index 22d0b2c8..1ac0a1ad 100755 --- a/tracker-hatire/ftnoir_tracker_hat.cpp +++ b/tracker-hatire/ftnoir_tracker_hat.cpp @@ -122,7 +122,7 @@ void hatire::data(double *data) { bool ok = true; // resync frame - int index = data_read.indexOf(Begin); + int index = data_read.indexOf(Begin, 1); if (index == -1) { ok = false; -- cgit v1.2.3