mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-23 05:43:32 +02:00
Remove more obsd warnings
This commit is contained in:
parent
b156b7a9e1
commit
fb429260a1
1 changed files with 1 additions and 2 deletions
3
dns.c
3
dns.c
|
@ -281,11 +281,10 @@ dns_write(int fd, int id, char *buf, int len)
|
|||
parts = avail / CHUNK;
|
||||
for (p = 0; p < parts; p++) {
|
||||
for (i = 0; i < CHUNK; i++) {
|
||||
sprintf(d, "%02X", buf[p*CHUNK + i]);
|
||||
snprintf(d, 3, "%02X", buf[p*CHUNK + i]);
|
||||
d += 2;
|
||||
}
|
||||
*d++ = '.';
|
||||
strcpy(d, topdomain);
|
||||
}
|
||||
parts = avail % CHUNK;
|
||||
for (i = 0; i < parts; i++) {
|
||||
|
|
Loading…
Reference in a new issue