File xbase-2.0.0-gcc47.patch of Package xbase

Index: xbase-2.0.0/bin/dumprecs.cpp
===================================================================
--- xbase-2.0.0.orig/bin/dumprecs.cpp
+++ xbase-2.0.0/bin/dumprecs.cpp
@@ -77,10 +77,10 @@ int main(int ac,char** av)
      }
 
      cout << "\nLoop through forwards...\n";
-     int i = 0;
-     while(i<MyFile.NoOfRecords()) {
-       MyFile.DumpRecord(i+1);
-       i++;
+     int j = 0;
+     while(j<MyFile.NoOfRecords()) {
+       MyFile.DumpRecord(j+1);
+       j++;
      }
 
      MyFile.CloseDatabase();	/* close database */
openSUSE Build Service is sponsored by