aboutsummaryrefslogtreecommitdiff
path: root/ares/ares_mkquery.c
diff options
context:
space:
mode:
Diffstat (limited to 'ares/ares_mkquery.c')
-rw-r--r--ares/ares_mkquery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_mkquery.c b/ares/ares_mkquery.c
index e30abfc4f..11ce302b1 100644
--- a/ares/ares_mkquery.c
+++ b/ares/ares_mkquery.c
@@ -141,7 +141,7 @@ int ares_mkquery(const char *name, int dnsclass, int type, unsigned short id,
return ARES_EBADNAME;
/* Encode the length and copy the data. */
- *q++ = len;
+ *q++ = (unsigned char)len;
for (p = name; *p && *p != '.'; p++)
{
if (*p == '\\' && *(p + 1) != 0)