ares_expand_name: fix compiler warnings (#522)

Fix some compiler warnings (not introduced in this release)

Fix By: Daniel Stenberg (@bagder)
pull/524/head
Daniel Stenberg 2 years ago committed by GitHub
parent 7da53555c2
commit b685ab2539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/lib/ares_expand_name.c

@ -179,9 +179,9 @@ int ares__expand_name_validated(const unsigned char *encoded,
if (!ares__isprint(*p) && !(name_len == 1 && *p == 0))
{
*q++ = '\\';
*q++ = '0' + *p / 100;
*q++ = '0' + (*p % 100) / 10;
*q++ = '0' + (*p % 10);
*q++ = (char)('0' + *p / 100);
*q++ = (char)('0' + (*p % 100) / 10);
*q++ = (char)('0' + (*p % 10));
}
else if (is_reservedch(*p))
{

Loading…
Cancel
Save