From 5a343e7f292abf7f0297ac1a5ef1aaf9f628d6d8 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 2 May 2007 14:18:20 +0000 Subject: [PATCH] added linux support to UTIL_Relatize() --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40382 --- sourcemm/util.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sourcemm/util.cpp b/sourcemm/util.cpp index ee6d788..fadcf26 100644 --- a/sourcemm/util.cpp +++ b/sourcemm/util.cpp @@ -372,11 +372,10 @@ bool UTIL_Relatize(char buffer[], } /* Now build the new relative path. */ - char *ptr = buffer; size_t len, total = 0; while (numLevels--) { - len = _snprintf(&buffer[total], maxlength - total, "..\\"); + len = _snprintf(&buffer[total], maxlength - total, ".." PATH_SEP_STR); if (len >= maxlength - total) { /* Not enough space in the buffer */