LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File loki_setup-onebyte.diff of Package loki_setup (Project games:tools)

Index: file.c
===================================================================
RCS file: /cvs/cvsroot/loki_setup/file.c,v
retrieving revision 1.42
diff -u -r1.42 file.c
--- loki_setup.orig/file.c	10 Nov 2004 22:26:08 -0000	1.42
+++ loki_setup/file.c	14 Dec 2004 22:35:58 -0000
@@ -218,7 +218,9 @@
 				fstat(fileno(streamp->fp), &st);
 				streamp->size = st.st_size;
             }
-        }
+		} else {
+			rewind(streamp->fp);
+		}
         if ( (streamp->fp == NULL) && (streamp->zfp == NULL) && (streamp->bzfp == NULL) ) {
             file_close(info, streamp);
             log_warning(_("Couldn't read from file: %s"), path);