summaryrefslogtreecommitdiff
path: root/lib/dirname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dirname.c')
-rw-r--r--lib/dirname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dirname.c b/lib/dirname.c
index 8651174cad..3487015343 100644
--- a/lib/dirname.c
+++ b/lib/dirname.c
@@ -57,7 +57,7 @@ size_t
dir_name_r (const char *path, const char **result)
{
char *slash;
- int length; /* Length of result, not including NUL. */
+ size_t length; /* Length of result, not including NUL. */
slash = strrchr (path, '/');
if (BACKSLASH_IS_PATH_SEPARATOR)