home · contact · privacy
Made sure client is not confused by newlines at the end of config files.
[plomrogue] / src / client / windows.c
index e5c691d5c1e4305197487bb40ed871e17f29f666..2fd51313405e1c4d9ebedaa33ff1273e4947be4a 100644 (file)
@@ -625,7 +625,7 @@ extern uint8_t read_winconf_from_file(char * line, uint32_t linemax,
 {
     char * f_name = "read_winconf_from_file()";
     int test = try_fgetc(file, f_name);
-    if (EOF == test)
+    if (EOF == test || '\n' == test)
     {
         return 0;
     }