Patch from Julian Foad:

Remove a hack that originally worked around a buffer overflow
elsewhere in the file.  The buffer overflow was fixed long ago, but
the hack was not removed.
This commit is contained in:
david
2002-06-28 15:54:34 +00:00
parent 2581446d85
commit 2253b82304

View File

@@ -137,17 +137,12 @@ TimezoneContainer::TimezoneContainer(const char *filename)
if (feof(infile)) {
break;
}
#ifdef _MSC_VER
if( buffer[0] == '#' )
continue;
#else
for (char *p = buffer; *p; p++) {
if (*p == '#') {
*p = 0;
break;
}
}
#endif
if (buffer[0]) {
data.push_back(new Timezone(buffer));
}