summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-07-14 01:22:07 +0000
committerpeter <peter@FreeBSD.org>2000-07-14 01:22:07 +0000
commitd5b4e49e295dc00b17632ae485c2d8d0ca40914b (patch)
tree621b0a35f8e53be31db7ebdbd7f764a5246f29ca
parentd7ee90746cf828fdb44fbd975afca7a94a7fa072 (diff)
downloadFreeBSD-src-d5b4e49e295dc00b17632ae485c2d8d0ca40914b.zip
FreeBSD-src-d5b4e49e295dc00b17632ae485c2d8d0ca40914b.tar.gz
Oops. I originally extended the bcopy to 8 characters to include the
original \0 on the terminating string, however I changed my mind to make it more obvious that the termination was being taken care of and explicitly added the nul terminator. I forgot to reset the bcopy length.
-rw-r--r--usr.sbin/usbd/usbd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/usbd/usbd.c b/usr.sbin/usbd/usbd.c
index 11139c1..d63ceef 100644
--- a/usr.sbin/usbd/usbd.c
+++ b/usr.sbin/usbd/usbd.c
@@ -385,7 +385,7 @@ set_devname_field(action_t *action, char *args, char **trail)
bcopy(action->devname, string+7, len); /* make some space for */
bcopy("[[:<:]]", string, 7); /* beginning of word */
- bcopy("[[:>:]]", string+7+len, 8); /* and end of word */
+ bcopy("[[:>:]]", string+7+len, 7); /* and end of word */
string[len + 14] = '\0';
error = regcomp(&action->devname_regex, string, REG_NOSUB|REG_EXTENDED);
OpenPOWER on IntegriCloud