From 2d3f98aba12b6f6080687bb891d2b13e76ba6ce2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= <tseeker@nocternity.net>
Date: Wed, 27 Dec 2017 10:12:13 +0100
Subject: [PATCH] Filesystem abstraction prototype - Path fixes

---
 p-filesystem.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/p-filesystem.cc b/p-filesystem.cc
index 0f6e835..9751e00 100644
--- a/p-filesystem.cc
+++ b/p-filesystem.cc
@@ -312,7 +312,7 @@ T_FSPath T_FSPath::makeRelative(
 
 	T_FSPath np;
 	const T_String parent{ T_String::Pooled( ".." ) };
-	for ( auto i = nca ; i > nCommon ; i -- ) {
+	for ( auto i = ncb ; i > nCommon ; i -- ) {
 		np.components_.add( parent );
 	}
 	for ( auto i = nCommon ; i < nca ; i ++ ) {
@@ -335,7 +335,7 @@ bool T_FSPath::isCanonical( ) const noexcept
 			return false;
 		}
 	}
-	return nc > 0;
+	return true;
 }
 
 T_FSPath T_FSPath::canonical( ) const noexcept