From b779c6f7d73e5f70b2d886ed75e6e65217ad1e85 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 19 May 2020 19:12:10 -0700 Subject: checkin: found a large bug associated to ident resetting the buffer vector --- sys/libn/os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/libn/os.c') diff --git a/sys/libn/os.c b/sys/libn/os.c index c9cc0ae..75688e9 100644 --- a/sys/libn/os.c +++ b/sys/libn/os.c @@ -26,5 +26,5 @@ os·basename(byte *path) byte *sep; sep = utf8·findrrune(path, os·sep()); - return sep+1; + return (sep == nil) ? path : sep+1; } -- cgit v1.2.1