<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40544 >

 $subject


 - ML

diff -Nurd -X.diff_ignore freeciv/server/auth.c freeciv/server/auth.c
--- freeciv/server/auth.c       2008-10-28 17:56:15.000000000 +0200
+++ freeciv/server/auth.c       2008-10-28 22:44:05.000000000 +0200
@@ -199,7 +199,7 @@
 
   if (buffer[0] != '\0') {
     /* There is line to print */
-    freelog(loglevel, buffer);
+    freelog(loglevel, "%s", buffer);
   }
 }
 
@@ -258,11 +258,8 @@
                              struct auth_option *target)
 {
   const char *value;
-  char option[512];
 
-  my_snprintf(option, sizeof(option), "auth.%s", target->name);
-
-  value = secfile_lookup_str_default(file, "", option);
+  value = secfile_lookup_str_default(file, "", "auth.%s", target->name);
   if (value[0] != '\0') {
     /* We really loaded something from file */
     set_auth_option(target, value, AOS_FILE);
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to