if (0 == uBytes)\r
Quit("TextFile::GetLine, buffer zero size");\r
\r
- memset(szLine, 0, uBytes);\r
+ \r
+ int FillVal = 0; // suppress warning from gcc that I don't understand\r
+ memset(szLine, FillVal, (size_t) uBytes);\r
\r
unsigned uBytesCopied = 0;\r
\r
// As GetLine, but trim leading and trailing blanks; skip empty lines\r
bool TextFile::GetTrimLine(char szLine[], unsigned uBytes)\r
{\r
+ if (uBytes == 0)\r
+ Quit("GetTrimLine");\r
for (;;)\r
{\r
bool bEOF = GetLine(szLine, uBytes);\r
\r
void TextFile::GetLineX(char szLine[], unsigned uBytes)\r
{\r
+ if (uBytes == 0)\r
+ Quit("GetLineX");\r
bool bEof = GetLine(szLine, uBytes);\r
if (bEof)\r
Quit("end-of-file in GetLineX");\r