diff options
Diffstat (limited to 'ares_mkquery.c')
-rw-r--r-- | ares_mkquery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_mkquery.c b/ares_mkquery.c index e30abfc..11ce302 100644 --- a/ares_mkquery.c +++ b/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) |