]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/timezone.cxx
Use the original filename for the compressed image message.
[simgear.git] / simgear / timing / timezone.cxx
index 118849184b40e3b493d2250ce31e221e443f5858..26174c7538f513d3c27333ee6bb1b0d7215bf3d6 100644 (file)
@@ -143,7 +143,8 @@ SGTimeZoneContainer::SGTimeZoneContainer(const char *filename)
     errno = 0;
 
     while (1) {
-        fgets(buffer, 256, infile);
+        if (0 == fgets(buffer, 256, infile))
+            break;
         if (feof(infile)) {
             break;
         }