summaryrefslogtreecommitdiffstats
path: root/libtar/dirname.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libtar/dirname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtar/dirname.c b/libtar/dirname.c
index 986db4aa1..4e060677e 100644
--- a/libtar/dirname.c
+++ b/libtar/dirname.c
@@ -67,7 +67,7 @@ openbsd_dirname(path)
} while (endp > path && *endp == '/');
}
- if (endp - path + 1 > sizeof(bname)) {
+ if (endp - path + 1 > (int)sizeof(bname)) {
errno = ENAMETOOLONG;
return(NULL);
}