projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Correct .gbs.conf settings
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
net
/
dns_resolver
/
dns_query.c
diff --git
a/net/dns_resolver/dns_query.c
b/net/dns_resolver/dns_query.c
index
e7b6d53
..
f005cc7
100644
(file)
--- a/
net/dns_resolver/dns_query.c
+++ b/
net/dns_resolver/dns_query.c
@@
-149,7
+149,9
@@
int dns_query(const char *type, const char *name, size_t namelen,
if (!*_result)
goto put;
- memcpy(*_result, upayload->data, len + 1);
+ memcpy(*_result, upayload->data, len);
+ (*_result)[len] = '\0';
+
if (_expiry)
*_expiry = rkey->expiry;