diff options
author | 2015-11-24 10:17:15 +0000 | |
---|---|---|
committer | 2015-11-24 10:17:15 +0000 | |
commit | c0d601f789a20f7d2a035ad1fd1ced267f6cf161 (patch) | |
tree | 063b947c8bf3b8b89d34c2a4644f60916649c929 | |
parent | fix tx ring accounting in myx_start. (diff) | |
download | wireguard-openbsd-c0d601f789a20f7d2a035ad1fd1ced267f6cf161.tar.xz wireguard-openbsd-c0d601f789a20f7d2a035ad1fd1ced267f6cf161.zip |
zap useless use of strlen, okay reyk@ mlarkin@
-rw-r--r-- | usr.sbin/vmmctl/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmmctl/parse.y b/usr.sbin/vmmctl/parse.y index 8461ff396f1..6663eb43efe 100644 --- a/usr.sbin/vmmctl/parse.y +++ b/usr.sbin/vmmctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.1 2015/11/22 20:55:18 reyk Exp $ */ +/* $OpenBSD: parse.y,v 1.2 2015/11/24 10:17:15 espie Exp $ */ /* * Copyright (c) 2007-2015 Reyk Floeter <reyk@openbsd.org> @@ -647,7 +647,7 @@ cmdline_symset(char *s) if ((val = strrchr(s, '=')) == NULL) return (-1); - len = strlen(s) - strlen(val) + 1; + len = (val - s) + 1; if ((sym = malloc(len)) == NULL) errx(1, "cmdline_symset: malloc"); |