From: david Date: Fri, 28 Jun 2002 15:54:34 +0000 (+0000) Subject: Patch from Julian Foad: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2253b82304626cbe7b38e42c35d12f1ce871351e;p=simgear.git 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. --- diff --git a/simgear/timing/timezone.cxx b/simgear/timing/timezone.cxx index 29ef5df0..41c596e8 100644 --- a/simgear/timing/timezone.cxx +++ b/simgear/timing/timezone.cxx @@ -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)); }