From 151d2cf8c5d49b882b20d0da3a261fda476129c3 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 13 Jun 2012 14:08:30 -0700 Subject: [PATCH] Use relative path when tokenizing segments Previously the raw path was used which may not have had a resolved home directory included in it. --- Atom-Linux/native_handler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Atom-Linux/native_handler.cpp b/Atom-Linux/native_handler.cpp index c901c4f8c..f0c918da7 100644 --- a/Atom-Linux/native_handler.cpp +++ b/Atom-Linux/native_handler.cpp @@ -72,8 +72,8 @@ void NativeHandler::Absolute(const CefString& name, } vector < string > segments; - char allSegments[path.length() + 1]; - strcpy(allSegments, path.c_str()); + char allSegments[relativePath.length() + 1]; + strcpy(allSegments, relativePath.c_str()); const char* segment; for (segment = strtok(allSegments, "/"); segment; segment = strtok(NULL, "/")) {