skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

commit e9f98a16d7b46332ec4986d890c5d2e26f081cc7
parent f5e75663fef044cad02eef3eb7aef295312c1158
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date:   Thu, 10 Oct 2019 18:08:36 +0000

 Fix path_canonicalize()'s returned length when absolute

Diffstat:
Msrc/libstddjb/path_canonicalize.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libstddjb/path_canonicalize.c b/src/libstddjb/path_canonicalize.c @@ -65,5 +65,5 @@ size_t path_canonicalize (char *out, char const *in, int check) if (j && out[j-1] == '/') j-- ; if (!j && !isabsolute) out[j++] = '.' ; out[j] = 0 ; - return j ; + return j + isabsolute ; }