Skip to content

Commit ce83b59

Browse files
committed
[TD] Additional fixes to teamtype ini loading.
1 parent b33b846 commit ce83b59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tiberiandawn/teamtype.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void TeamTypeClass::Read_INI(CCINIClass& ini)
179179
TeamTypeClass* team; // Working team pointer.
180180

181181
int len = ini.Entry_Count(INI_Name());
182-
char buf[500]; // INI entry buffer
182+
char buf[INIClass::MAX_LINE_LENGTH]; // INI entry buffer
183183

184184
/*
185185
** Loop for all team entries, create and fill in.
@@ -240,7 +240,7 @@ void TeamTypeClass::Fill_In(const char* name, const char* entry)
240240
UnitType u_id; // unit ID
241241
AircraftType a_id; // aircraft ID
242242
TeamMissionStruct mission;
243-
char buf[128];
243+
char buf[INIClass::MAX_LINE_LENGTH];
244244

245245
strcpy(buf, entry);
246246

0 commit comments

Comments
 (0)