Author: cazfi
Date: Sat Jun 11 14:29:46 2016
New Revision: 32829

URL: http://svn.gna.org/viewcvs/freeciv?rev=32829&view=rev
Log:
Fixed creation of storage dir for options file when dir separator not '/'

See bug #24676

Modified:
    trunk/client/options.c

Modified: trunk/client/options.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/options.c?rev=32829&r1=32828&r2=32829&view=diff
==============================================================================
--- trunk/client/options.c      (original)
+++ trunk/client/options.c      Sat Jun 11 14:29:46 2016
@@ -5901,7 +5901,7 @@
 
   /* Directory name */
   strncpy(dir_name, name, sizeof(dir_name));
-  for (i = strlen(dir_name) - 1 ; dir_name[i] != '/' && i >= 0; i--) {
+  for (i = strlen(dir_name) - 1 ; dir_name[i] != DIR_SEPARATOR_CHAR && i >= 0; 
i--) {
     /* Nothing */
   }
   if (i > 0) {


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to