Author: cazfi Date: Mon Nov 21 12:15:30 2016 New Revision: 34602 URL: http://svn.gna.org/viewcvs/freeciv?rev=34602&view=rev Log: Respect DIR_SEPARATOR when constructing file path in fileinfolist_infix()
See patch #8008 Modified: trunk/utility/shared.c Modified: trunk/utility/shared.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/utility/shared.c?rev=34602&r1=34601&r2=34602&view=diff ============================================================================== --- trunk/utility/shared.c (original) +++ trunk/utility/shared.c Mon Nov 21 12:15:30 2016 @@ -1190,7 +1190,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