aboutsummaryrefslogtreecommitdiff
path: root/nis/nss_nis/nis-rpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nss_nis/nis-rpc.c')
-rw-r--r--nis/nss_nis/nis-rpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nss_nis/nis-rpc.c b/nis/nss_nis/nis-rpc.c
index 91f54be..a549076 100644
--- a/nis/nss_nis/nis-rpc.c
+++ b/nis/nss_nis/nis-rpc.c
@@ -128,7 +128,7 @@ internal_nis_getrpcent_r (struct rpcent *rpc, char *buffer, size_t buflen,
return retval;
}
- if (len + 1 > buflen)
+ if ((size_t) (len + 1) > buflen)
{
free (result);
__set_errno (ERANGE);
@@ -243,7 +243,7 @@ _nss_nis_getrpcbynumber_r (int number, struct rpcent *rpc,
return retval;
}
- if (len + 1 > buflen)
+ if ((size_t) (len + 1) > buflen)
{
free (result);
__set_errno (ERANGE);