From a80af90142526d5b026a89fdbac205e93e19d25a Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Tue, 1 Mar 2011 19:27:34 +0000 Subject: Implemented OS detection routines provided by GS svn path=/trunk/netsurf/; revision=11873 --- atari/findfile.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'atari/findfile.c') diff --git a/atari/findfile.c b/atari/findfile.c index da44ab5e4..5001050a6 100755 --- a/atari/findfile.c +++ b/atari/findfile.c @@ -55,18 +55,24 @@ char *url_to_path(const char *url) char *path; /* return the absolute path including leading / */ - if( atari_sysinfo.gdosversion > TOS4VER ) { + if( sys_type() & SYS_MINT ) { path = strdup(url_path + (FILE_SCHEME_PREFIX_LEN - 1)); } else { /* do not include / within url_path */ - path = strdup(url_path + (FILE_SCHEME_PREFIX_LEN)); - int l = strlen(path); - int i; - for( i = 0; i