AROS: check for ':' to avoid paths like PROGDIR:/filename.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1971 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
mazzearos 2012-08-02 10:56:08 +00:00
parent 113d6423b4
commit ce2d12a0a8

View File

@ -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);