aboutsummaryrefslogtreecommitdiff
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 cde6a84..a4d242e 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)