From e321d444dcca514cf6b53459e388ddcbaab6176c Mon Sep 17 00:00:00 2001 From: srs5694 Date: Fri, 29 Jan 2010 17:44:04 -0500 Subject: Final 0.6.2 release; misc. bug fixes & Windows version --- parttypes.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'parttypes.h') diff --git a/parttypes.h b/parttypes.h index 7e6d892..1534a52 100644 --- a/parttypes.h +++ b/parttypes.h @@ -10,9 +10,6 @@ #ifndef __PARTITION_TYPES #define __PARTITION_TYPES -// Set the size of the name string -#define PNAME_SIZE 80 - using namespace std; // A partition type @@ -22,7 +19,7 @@ struct AType { // codes required by GPT uint16_t MBRType; struct GUIDData GUIDType; - char name[PNAME_SIZE]; + string name; int display; // 1 to show to users as available type, 0 not to AType* next; }; // struct AType @@ -36,7 +33,7 @@ public: PartTypes(void); ~PartTypes(void); int AddType(uint16_t mbrType, uint64_t guidData1, uint64_t guidData2, - const char* name, int toDisplay = 1); + const char * name, int toDisplay = 1); void ShowTypes(void); int Valid(uint16_t); string GUIDToName(struct GUIDData typeCode); -- cgit v1.2.1