mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 14:41:28 +00: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;
|
parts = avail / CHUNK;
|
||||||
for (p = 0; p < parts; p++) {
|
for (p = 0; p < parts; p++) {
|
||||||
for (i = 0; i < CHUNK; i++) {
|
for (i = 0; i < CHUNK; i++) {
|
||||||
sprintf(d, "%02X", buf[p*CHUNK + i]);
|
snprintf(d, 3, "%02X", buf[p*CHUNK + i]);
|
||||||
d += 2;
|
d += 2;
|
||||||
}
|
}
|
||||||
*d++ = '.';
|
*d++ = '.';
|
||||||
strcpy(d, topdomain);
|
|
||||||
}
|
}
|
||||||
parts = avail % CHUNK;
|
parts = avail % CHUNK;
|
||||||
for (i = 0; i < parts; i++) {
|
for (i = 0; i < parts; i++) {
|
||||||
|
|
Loading…
Reference in a new issue