Fixes and improves parsing of config file.
[lcr.git] / crypt.cpp
index ee8e7cc..44e901c 100644 (file)
--- a/crypt.cpp
+++ b/crypt.cpp
@@ -216,7 +216,7 @@ static unsigned int get_bogomips(void)
        }
        fduse++;
        buffer[sizeof(buffer-1)] = '\0';
-       while(fgets(buffer, sizeof(buffer)-1, fp)) {
+       while(GETLINE(buffer, fp)) {
                if (!!strncmp(buffer, "bogomips", 8))
                        continue;
                if (!strchr(buffer, ':'))