Cast to size_t to remove warning. Cvs:

* gnuserv.c: (permitted): Cast to size_t to remove warning.
Cvs: ----------------------------------------------------------------------
This commit is contained in:
Benoît Dejean
2004-05-25 14:39:13 +00:00
parent 0de7c96d2a
commit 4e4a2bcbed
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2004-05-25 Benoît Dejean <tazforever@dlfp.org>
* gnuserv.c: (permitted): Cast to size_t to remove warning.
2004-03-04 Bastien Nocera <hadess@hadess.net>
* Makefile.am:

View File

@@ -203,7 +203,7 @@ permitted (u_long host_addr, int fd)
auth_data_len = atoi (buf);
if (auth_data_len < 1 || auth_data_len > sizeof(buf)) {
if (auth_data_len < 1 || (size_t)auth_data_len > sizeof(buf)) {
syslog_message(LOG_WARNING, "Invalid data length supplied by client");
return FALSE;
}