* Fixed another fread() bug
[citadel.git] / citadel / config.c
index 4c2509f0028d49b569814aec4fa07fa77926dcae..9d731d3e7fee51a8bfe67588c50b485f9fab649a 100644 (file)
@@ -69,7 +69,7 @@ void get_config(void) {
        }
        memset(&config, 0, sizeof(struct config));
        rv = fread((char *) &config, sizeof(struct config), 1, cfp);
-       if (rv != sizeof(struct config))
+       if (rv != 1)
        {
                fprintf(stderr, 
                        "Warning: The config file %s has unexpected size. \n",