Fixes r727 not compiling on windows,

Fixes an old issue on Linux where the program couldn't be run from a symbolic to the executable.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@743 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2009-04-07 21:53:20 +00:00
parent 19ac89a38f
commit c98bfafb76
5 changed files with 86 additions and 69 deletions

3
io.c
View File

@@ -39,6 +39,7 @@
#include "struct.h"
#include "io.h"
#include "realpath.h"
word Endian_magic16(word x)
{
@@ -196,7 +197,7 @@ void Extract_path(char *dest, const char *source)
{
char * position=NULL;
realpath(source,dest);
Realpath(source,dest);
position = Find_last_slash(dest);
if (position)
*(position+1) = '\0';