src/mess/tools/imgtool/windows/wimgtool.c
| r7923 | r7924 | |
| 1303 | 1303 | /* append the current directory, if appropriate */ |
| 1304 | 1304 | if (info->current_directory != NULL) |
| 1305 | 1305 | { |
| 1306 | | s2 = (char *) alloca(strlen(info->current_directory) + strlen(image_filename) + 1); |
| 1306 | s2 = (char *) alloca(strlen(info->current_directory) + strlen(image_filename) + 1 + 1); |
| 1307 | 1307 | strcpy(s2, info->current_directory); |
| 1308 | strcat(s2, "\\"); |
| 1308 | 1309 | strcat(s2, image_filename); |
| 1309 | 1310 | image_filename = s2; |
| 1310 | 1311 | } |
| r7923 | r7924 | |
| 1548 | 1549 | |
| 1549 | 1550 | if (info->current_directory) |
| 1550 | 1551 | { |
| 1551 | | s = (char *) alloca(strlen(info->current_directory) + strlen(dirname) + 1); |
| 1552 | s = (char *) alloca(strlen(info->current_directory) + strlen(dirname) + 1 + 1); |
| 1552 | 1553 | strcpy(s, info->current_directory); |
| 1554 | strcat(s, "\\"); |
| 1553 | 1555 | strcat(s, dirname); |
| 1554 | 1556 | free(dirname); |
| 1555 | 1557 | dirname = mame_strdup(s); |