summaryrefslogtreecommitdiff
path: root/sys/src
diff options
context:
space:
mode:
authoraiju <devnull@localhost>2017-02-19 22:53:10 +0000
committeraiju <devnull@localhost>2017-02-19 22:53:10 +0000
commit55373a649820a952ca26f5f315a8a2c60997a480 (patch)
tree247710e263474ea687198e53d78e89741e037bdf /sys/src
parent64f5e1ddd4a4b350a31dc8d035b0b2c98b606fc2 (diff)
ip/ipconfig: don't null terminate the dhcp string options.
this seems to be an anachronism; few modern clients put the null in and RFC 2132 says clients 'SHOULD NOT' null terminate
Diffstat (limited to 'sys/src')
-rw-r--r--sys/src/cmd/ip/ipconfig/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/ipconfig/main.c b/sys/src/cmd/ip/ipconfig/main.c
index 06a9bfee0..a0d88031b 100644
--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -1404,7 +1404,7 @@ optaddstr(uchar *p, int op, char *v)
{
int n;
- n = strlen(v)+1; /* microsoft leaves on the NUL, so we do too */
+ n = strlen(v);
p[0] = op;
p[1] = n;
memmove(p+2, v, n);