diff options
Diffstat (limited to '')
-rw-r--r-- | libtar/basename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtar/basename.c b/libtar/basename.c index 2ac1e139e..32108d613 100644 --- a/libtar/basename.c +++ b/libtar/basename.c @@ -64,7 +64,7 @@ openbsd_basename(path) while (startp > path && *(startp - 1) != '/') startp--; - if (endp - startp + 1 > sizeof(bname)) { + if (endp - startp + 1 > (int)sizeof(bname)) { errno = ENAMETOOLONG; return(NULL); } |