src/mess/tools/imgtool/imgtool.c
| r2758 | r2759 | |
| 2524 | 2524 | { |
| 2525 | 2525 | /* append a path */ |
| 2526 | 2526 | if ((strlen(path1) > 0) && (path1[strlen(path1) - 1] != path_separator)) |
| 2527 | | snprintf(buffer, buffer_len, "%s%c%s%c", path1, path_separator, path2, path_separator); |
| 2527 | snprintf(buffer, buffer_len, "%s%c%s", path1, path_separator, path2); |
| 2528 | 2528 | else |
| 2529 | | snprintf(buffer, buffer_len, "%s%s%c", path1, path2, path_separator); |
| 2529 | snprintf(buffer, buffer_len, "%s%s", path1, path2); |
| 2530 | 2530 | } |
| 2531 | 2531 | return buffer; |
| 2532 | 2532 | } |