summaryrefslogtreecommitdiff
path: root/win/configure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'win/configure.cpp')
-rw-r--r--win/configure.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/win/configure.cpp b/win/configure.cpp
index 290b8e7a1..a72a95b73 100644
--- a/win/configure.cpp
+++ b/win/configure.cpp
@@ -130,10 +130,9 @@ int get_svn_revision(char * buffer, size_t len)
FILE * f = fopen("..\\.svn\\entries", "r");
if (f)
{
- fgets(buf, 1000, f);
- fgets(buf, 1000, f);
- fgets(buf, 1000, f);
- fgets(buf, 1000, f);
+ for (int q = 0; q < 4; ++q)
+ fgets(buf, 1000, f);
+
rev = atoi(buf);
sprintf(buffer, "%u", rev);
fclose(f);