summaryrefslogtreecommitdiff
path: root/appl/lib/names.b
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-08-02 14:49:50 +0100
committerforsyth <forsyth@vitanuova.com>2010-08-02 14:49:50 +0100
commit66f5808b81b1df84bc57c4f7b9d487201bc162fb (patch)
treefe09448075dcf50ecca78a673e16ad84a666d3da /appl/lib/names.b
parent7781741266783e4df3b35d42a55e8e504838898b (diff)
20100802-1449
Diffstat (limited to 'appl/lib/names.b')
-rw-r--r--appl/lib/names.b4
1 files changed, 2 insertions, 2 deletions
diff --git a/appl/lib/names.b b/appl/lib/names.b
index d3a2082e..08bc4875 100644
--- a/appl/lib/names.b
+++ b/appl/lib/names.b
@@ -120,7 +120,7 @@ isprefix(a: string, b: string): int
{
la := len a;
if(la == 0)
- return 0; # "" isnt' a pathname
+ return 0; # "" isn't a pathname
while(la > 1 && a[la-1] == '/')
a = a[0:--la];
lb := len b;
@@ -128,7 +128,7 @@ isprefix(a: string, b: string): int
return 0;
if(la == lb)
return a == b;
- return a == b[0:la] && (b[la] == '/' || a == "/");
+ return a == b[0:la] && (a == "/" || b[la] == '/');
}
elements(name: string): list of string