about summary refs log tree commit diff
path: root/resolv/res_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/res_send.c')
-rw-r--r--resolv/res_send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c
index cde6a845d5..a4d242e8aa 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -468,7 +468,7 @@ read_len:
 				while (len != 0) {
 					char junk[PACKETSZ];
 
-					n = (len > sizeof(junk)
+					n = ((size_t) len > sizeof(junk)
 					     ? sizeof(junk)
 					     : len);
 					if ((n = read(s, junk, n)) > 0)