diff options
Diffstat (limited to 'nis/nss_compat')
-rw-r--r-- | nis/nss_compat/compat-grp.c | 2 | ||||
-rw-r--r-- | nis/nss_compat/compat-pwd.c | 2 | ||||
-rw-r--r-- | nis/nss_compat/compat-spwd.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/nis/nss_compat/compat-grp.c b/nis/nss_compat/compat-grp.c index 372212d0a3..68f852d19a 100644 --- a/nis/nss_compat/compat-grp.c +++ b/nis/nss_compat/compat-grp.c @@ -360,7 +360,7 @@ getgrent_next_file_plusgroup (struct group *result, char *buffer, != YPERR_SUCCESS) return NSS_STATUS_TRYAGAIN; p = strncpy (buffer, outval, - buflen < outvallen ? buflen : outvallen); + buflen < (size_t) outvallen ? buflen : (size_t) outvallen); free (outval); while (isspace (*p)) p++; diff --git a/nis/nss_compat/compat-pwd.c b/nis/nss_compat/compat-pwd.c index 194b332c38..b47a8b13c1 100644 --- a/nis/nss_compat/compat-pwd.c +++ b/nis/nss_compat/compat-pwd.c @@ -677,7 +677,7 @@ getpwent_next_file_plususer (struct passwd *result, char *buffer, != YPERR_SUCCESS) return NSS_STATUS_TRYAGAIN; p = strncpy (buffer, outval, - buflen < outvallen ? buflen : outvallen); + buflen < (size_t) outvallen ? buflen : (size_t) outvallen); free (outval); while (isspace (*p)) p++; diff --git a/nis/nss_compat/compat-spwd.c b/nis/nss_compat/compat-spwd.c index 74967f8fd4..30c4e407d2 100644 --- a/nis/nss_compat/compat-spwd.c +++ b/nis/nss_compat/compat-spwd.c @@ -630,7 +630,7 @@ getspent_next_file_plususer (struct spwd *result, char *buffer, != YPERR_SUCCESS) return NSS_STATUS_TRYAGAIN; p = strncpy (buffer, outval, - buflen < outvallen ? buflen : outvallen); + buflen < (size_t) outvallen ? buflen : (size_t) outvallen); free (outval); while (isspace (*p)) p++; |