diff options
Diffstat (limited to 'src/libstddjb/path_canonicalize.c')
-rw-r--r-- | src/libstddjb/path_canonicalize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstddjb/path_canonicalize.c b/src/libstddjb/path_canonicalize.c index c30f9f4..8dec829 100644 --- 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 ; } |