From ce2d12a0a8d4569f11909d69aa2dbf12ce1ee646 Mon Sep 17 00:00:00 2001 From: mazzearos Date: Thu, 2 Aug 2012 10:56:08 +0000 Subject: [PATCH] AROS: check for ':' to avoid paths like PROGDIR:/filename. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1971 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/io.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/io.c b/src/io.c index b499ad8d..dd8e068a 100644 --- a/src/io.c +++ b/src/io.c @@ -420,7 +420,12 @@ void Get_full_filename(char * output_name, char * file_name, char * directory_na // Append a separator at the end of path, if there isn't one already. // This handles the case of directory variables which contain one, // as well as directories like "/" on Unix. +#if defined(__AROS__) + // additional check for ':' to avoid paths like PROGDIR:/unnamed.gif + if ((output_name[strlen(output_name)-1]!=PATH_SEPARATOR[0]) && (output_name[strlen(output_name)-1]!=':')) +#else if (output_name[strlen(output_name)-1]!=PATH_SEPARATOR[0]) +#endif strcat(output_name,PATH_SEPARATOR); } strcat(output_name,file_name);