Previous 15994 Revisions Next

r7924 Wednesday 28th April, 2010 at 11:59:42 UTC by Firewave
[WIMGTOOL] Fixed insertion inside of folders
[src/mess/tools/imgtool/windows]wimgtool.c

src/mess/tools/imgtool/windows/wimgtool.c
r7923r7924
13031303   /* append the current directory, if appropriate */
13041304   if (info->current_directory != NULL)
13051305   {
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);
13071307      strcpy(s2, info->current_directory);
1308      strcat(s2, "\\");
13081309      strcat(s2, image_filename);
13091310      image_filename = s2;
13101311   }
r7923r7924
15481549
15491550   if (info->current_directory)
15501551   {
1551      s = (char *) alloca(strlen(info->current_directory) + strlen(dirname) + 1);
1552      s = (char *) alloca(strlen(info->current_directory) + strlen(dirname) + 1 + 1);
15521553      strcpy(s, info->current_directory);
1554      strcat(s, "\\");
15531555      strcat(s, dirname);
15541556      free(dirname);
15551557      dirname = mame_strdup(s);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team