mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 08:09:19 +02:00
Remove more obsd warnings
This commit is contained in:
parent
b156b7a9e1
commit
fb429260a1
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 New Issue