From d1b11e8305621d73ff675af940e7f1f28b639b0d Mon Sep 17 00:00:00 2001 From: srs5694 Date: Sun, 18 Sep 2011 21:12:28 -0400 Subject: Fixed bug in reading GPTs with encoded header sizes other than 92 bytes. --- gptcurses.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gptcurses.h') diff --git a/gptcurses.h b/gptcurses.h index 14f43ad..4a9987e 100644 --- a/gptcurses.h +++ b/gptcurses.h @@ -2,21 +2,21 @@ * Implementation of GPTData class derivative with curses-based text-mode * interaction * Copyright (C) 2011 Roderick W. Smith - * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - * + * */ #include @@ -81,6 +81,7 @@ protected: string whichOptions; char currentKey; int numSpaces; + // Functions relating to Spaces data structures void EmptySpaces(void); int MakeSpacesFromParts(void); @@ -90,6 +91,7 @@ protected: void LinkToEnd(Space *theSpace); void SortSpaces(void); void IdentifySpaces(void); + // Data display functions Space* ShowSpace(int spaceNum, int lineNum); int DisplayParts(int selected); -- cgit v1.2.1