Author: cazfi Date: Mon Nov 21 12:15:39 2016 New Revision: 34603 URL: http://svn.gna.org/viewcvs/freeciv?rev=34603&view=rev Log: Respect DIR_SEPARATOR when constructing file path in fileinfolist_infix()
See patch #8008 Modified: branches/S2_6/utility/shared.c Modified: branches/S2_6/utility/shared.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/utility/shared.c?rev=34603&r1=34602&r2=34603&view=diff ============================================================================== --- branches/S2_6/utility/shared.c (original) +++ branches/S2_6/utility/shared.c Mon Nov 21 12:15:39 2016 @@ -1269,7 +1269,7 @@ size_t len = strlen(dirname) + strlen(filename) + 2; fullname = fc_malloc(len); - fc_snprintf(fullname, len, "%s/%s", dirname, filename); + fc_snprintf(fullname, len, "%s" DIR_SEPARATOR "%s", dirname, filename); if (fc_stat(fullname, &buf) == 0) { file = fc_malloc(sizeof(*file)); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits