equal
deleted
inserted
replaced
1269 if (p[-1] != PATHSEPCHAR && (size_t)(p - buf) + 1 < buflen) *p++ = PATHSEPCHAR; |
1269 if (p[-1] != PATHSEPCHAR && (size_t)(p - buf) + 1 < buflen) *p++ = PATHSEPCHAR; |
1270 ttd_strlcpy(p, file, buflen - (size_t)(p - buf)); // catenate filename at end of buffer |
1270 ttd_strlcpy(p, file, buflen - (size_t)(p - buf)); // catenate filename at end of buffer |
1271 return buf; |
1271 return buf; |
1272 } |
1272 } |
1273 |
1273 |
1274 #if defined(__MINGW32__) || defined(__CYGWIN__) |
1274 #if defined(__MINGW32__) |
1275 /** |
1275 /** |
1276 * On MingW, it is common that both / as \ are accepted in the |
1276 * On MingW, it is common that both / as \ are accepted in the |
1277 * params. To go with those flow, we rewrite all incoming / |
1277 * params. To go with those flow, we rewrite all incoming / |
1278 * simply to \, so internally we can safely assume \. |
1278 * simply to \, so internally we can safely assume \. |
1279 */ |
1279 */ |