| 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 |
| r3075 | r3076 | |
|---|---|---|
| 65 | 65 | { |
| 66 | 66 | *dst = (char *)malloc(strlen(path_buffer)+strlen(path)+3); |
| 67 | 67 | |
| 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 | } | |
| 69 | 77 | printf("osd_get_full_path: cwd [%s] path [%s] out [%s]\n", path_buffer, path, *dst); |
| 70 | 78 | } |
| 71 | 79 |
| Previous | 15994 Revisions | Next |