diff options
Diffstat (limited to 'src/dns/dnsparser.c')
-rw-r--r-- | src/dns/dnsparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns/dnsparser.c b/src/dns/dnsparser.c index 36b4c36f1..30d9245ff 100644 --- a/src/dns/dnsparser.c +++ b/src/dns/dnsparser.c | |||
@@ -1278,8 +1278,8 @@ GNUNET_DNSPARSER_hex_to_bin (const char *hex, | |||
1278 | in[2] = '\0'; | 1278 | in[2] = '\0'; |
1279 | for (off = 0; off < data_size; off++) | 1279 | for (off = 0; off < data_size; off++) |
1280 | { | 1280 | { |
1281 | in[0] = tolower ((int) hex[off * 2]); | 1281 | in[0] = tolower ((unsigned char) hex[off * 2]); |
1282 | in[1] = tolower ((int) hex[off * 2 + 1]); | 1282 | in[1] = tolower ((unsigned char) hex[off * 2 + 1]); |
1283 | if (1 != sscanf (in, "%x", &h)) | 1283 | if (1 != sscanf (in, "%x", &h)) |
1284 | return off; | 1284 | return off; |
1285 | idata[off] = (uint8_t) h; | 1285 | idata[off] = (uint8_t) h; |