From 977af213b9a9216ab67ce64a4a81a0c0c8311384 Mon Sep 17 00:00:00 2001 From: Morgan Hardwood Date: Tue, 2 Apr 2019 21:10:16 +0200 Subject: [PATCH] =?UTF-8?q?Queue=20template=20parsing=20OOB=20access=20fix?= =?UTF-8?q?=20by=20Fl=C3=B6ssie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://discuss.pixls.us/t/change-of-queue-output-directory-not-taken-fully-into-account-if-no-f/11975/4 --- rtgui/batchqueue.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/batchqueue.cc b/rtgui/batchqueue.cc index 175e59b43..7222be05d 100644 --- a/rtgui/batchqueue.cc +++ b/rtgui/batchqueue.cc @@ -860,9 +860,9 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam Glib::ustring path = ""; if (options.saveUsePathTemplate) { - int ix = 0; + unsigned int ix = 0; - while (options.savePathTemplate[ix] != 0) { + while (ix < options.savePathTemplate.size()) { if (options.savePathTemplate[ix] == '%') { ix++;