From 1c17405721e82ecad5b02d7ac6ae69292bffff7a Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 13 Jul 2008 19:44:05 +0000 Subject: (svn r13698) -Fix (r13697): MorphOS compilation. --- src/fileio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fileio.cpp b/src/fileio.cpp index 3b9772ff1..1f96e7318 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -373,7 +373,7 @@ FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir, for (TarLinkList::iterator link = _tar_linklist.begin(); link != _tar_linklist.end(); link++) { const std::string &src = link->first; uint len = src.length(); - if (resolved_len >= len && resolved_name[len - 1] == PATHSEPCHAR && src.compare(0, len, resolved_name, len) == 0) { + if (resolved_len >= len && resolved_name[len - 1] == PATHSEPCHAR && strncmp(src.c_str(), resolved_name, len) == 0) { /* Apply link */ char resolved_name2[MAX_RESOLVED_LENGTH]; const std::string &dest = link->second; -- cgit v1.2.3-70-g09d2