f3d2341
From 2d6253c7a692a3d92785dd990fce7256ea05e794 Mon Sep 17 00:00:00 2001
f3d2341
From: David Tardon <dtardon@redhat.com>
f3d2341
Date: Fri, 7 Apr 2017 19:28:55 +0200
f3d2341
Subject: [PATCH] ofz#1029 use correct loop index
f3d2341
f3d2341
To be honest, I think this would be clearer as two separate reads to two
f3d2341
separate vars...
f3d2341
---
f3d2341
 src/lib/StarWriterStruct.cxx | 2 +-
f3d2341
 1 file changed, 1 insertion(+), 1 deletion(-)
f3d2341
f3d2341
diff --git a/src/lib/StarWriterStruct.cxx b/src/lib/StarWriterStruct.cxx
f3d2341
index 5893302..d1ad366 100644
f3d2341
--- a/src/lib/StarWriterStruct.cxx
f3d2341
+++ b/src/lib/StarWriterStruct.cxx
f3d2341
@@ -327,7 +327,7 @@ bool DatabaseName::read(StarZone &zone)
f3d2341
         }
f3d2341
         data.m_name=libstoff::getString(text);
f3d2341
         int positions[2];
f3d2341
-        for (int j=0; j<2; ++j) positions[i]=int(input->readULong(4));
f3d2341
+        for (int j=0; j<2; ++j) positions[j]=int(input->readULong(4));
f3d2341
         data.m_selection=STOFFVec2i(positions[0],positions[1]);
f3d2341
         m_dataList.push_back(data);
f3d2341
       }
f3d2341
-- 
f3d2341
2.13.0
f3d2341