diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-09-16 07:42:35 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2017-09-16 07:42:35 +0000 |
commit | d2a31233fd1c8526b99983d69d5b20f296b76652 (patch) | |
tree | cc6bd6738afef216004ee32cc5547e6805349b99 /bin/pax/ftree.c | |
parent | 03daef3d504bd3a41b800daf1d4e8be541681324 (diff) |
Carefully add casts to silence clang sign-compare warnings. ok millert@
Diffstat (limited to 'bin/pax/ftree.c')
-rw-r--r-- | bin/pax/ftree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pax/ftree.c b/bin/pax/ftree.c index e45d4d43038..eb76a1e540a 100644 --- a/bin/pax/ftree.c +++ b/bin/pax/ftree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftree.c,v 1.40 2016/08/26 04:17:48 guenther Exp $ */ +/* $OpenBSD: ftree.c,v 1.41 2017/09/16 07:42:34 otto Exp $ */ /* $NetBSD: ftree.c,v 1.4 1995/03/21 09:07:21 cgd Exp $ */ /*- @@ -511,7 +511,7 @@ next_file(ARCHD *arcn) * copy file name, set file name length */ arcn->nlen = strlcpy(arcn->name, ftent->fts_path, sizeof(arcn->name)); - if (arcn->nlen >= sizeof(arcn->name)) + if ((size_t)arcn->nlen >= sizeof(arcn->name)) arcn->nlen = sizeof(arcn->name) - 1; /* XXX truncate? */ arcn->org_name = ftent->fts_path; return(0); |