Previous 15994 Revisions Next

r3076 Friday 22nd August, 2008 at 00:49:55 UTC by R. Belmont
[SDLMESS] osd_get_full_path(): handle an already full path being passed in.
[src/mess/osd/sdl]sdlmess.c

src/mess/osd/sdl/sdlmess.c
r3075r3076
6565   {
6666      *dst = (char *)malloc(strlen(path_buffer)+strlen(path)+3);
6767
68      sprintf(*dst, "%s%s%s", path_buffer, PATH_SEPARATOR, path);
68      // if it's already a full path, just pass it through
69      if (path[0] == '/')
70      {
71         strcpy(*dst, path);
72      }
73      else
74      {
75         sprintf(*dst, "%s%s%s", path_buffer, PATH_SEPARATOR, path);
76      }
6977      printf("osd_get_full_path: cwd [%s] path [%s] out [%s]\n", path_buffer, path, *dst);
7078   }
7179

Previous 15994 Revisions Next


© 1998-2018 The MESS Team