Author: cazfi Date: Sat Jun 11 14:29:51 2016 New Revision: 32830 URL: http://svn.gna.org/viewcvs/freeciv?rev=32830&view=rev Log: Fixed creation of storage dir for options file when dir separator not '/'
See bug #24676 Modified: branches/S2_6/client/options.c Modified: branches/S2_6/client/options.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/options.c?rev=32830&r1=32829&r2=32830&view=diff ============================================================================== --- branches/S2_6/client/options.c (original) +++ branches/S2_6/client/options.c Sat Jun 11 14:29:51 2016 @@ -5622,7 +5622,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