projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8c17e6
)
another pointer signedness fix
author
Rich Felker
<dalias@aerifal.cx>
Tue, 15 Feb 2011 00:40:20 +0000
(19:40 -0500)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 15 Feb 2011 00:40:20 +0000
(19:40 -0500)
src/network/__dns.c
patch
|
blob
|
history
diff --git
a/src/network/__dns.c
b/src/network/__dns.c
index 73ec422d8882bd9cfc51e276c85dcab949ffe59e..b8547bbafe307b41c5ddd6f1f7f112dfebfff5ba 100644
(file)
--- a/
src/network/__dns.c
+++ b/
src/network/__dns.c
@@
-46,7
+46,7
@@
int __dns_doqueries(unsigned char *dest, const char *name, int *rr, int rrcnt)
/* Construct query template - RR and ID will be filled later */
if (strlen(name)-1 >= 254U) return -1;
q[2] = q[5] = 1;
- strcpy(q+13, name);
+ strcpy(
(char *)
q+13, name);
for (i=13; q[i]; i=j+1) {
for (j=i; q[j] && q[j] != '.'; j++);
if (j-i-1u > 62u) return -1;