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

One place in log.c uses strdup instead of mystrdup.

Patch for 2.1, probably applies to 2.2 and trunk also.

-jason

Index: utility/log.c
===================================================================
--- utility/log.c	(revision 14048)
+++ utility/log.c	(working copy)
@@ -183,7 +183,7 @@
     log_filename = NULL;
   }
   if (filename && strlen(filename) > 0) {
-    log_filename = strdup(filename);
+    log_filename = mystrdup(filename);
   } else {
     log_filename = NULL;
   }
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to