[Frugalware-git] fwsetup-ng: fix updating the dos table

James Buren ryuo at frugalware.org
Sun Aug 19 03:30:44 CEST 2012


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=e74d0c5f508cc8b598499891bf3c872218ae6f18

commit e74d0c5f508cc8b598499891bf3c872218ae6f18
Author: James Buren <ryuo at frugalware.org>
Date:   Sat Aug 18 20:19:33 2012 -0500

fix updating the dos table

diff --git a/DosPartitionTable.cc b/DosPartitionTable.cc
index c1792a7..1eaeb65 100644
--- a/DosPartitionTable.cc
+++ b/DosPartitionTable.cc
@@ -4,6 +4,8 @@
#include "DosPartition.hh"
#include "DosPartitionTable.hh"

+#define MAX_PARTITIONS 60
+
bool DosPartitionTable::read(const string &path)
{
int fd = -1;
@@ -52,7 +54,9 @@ bool DosPartitionTable::read(const string &path)

part.setActive((blkid_partition_get_flags(partition) == 0x80) ? true : false);

-    table[i++] = part;
+    table.push_back(part);
+
+    ++i;
}

_label = label;


More information about the Frugalware-git mailing list