From d5b4e49e295dc00b17632ae485c2d8d0ca40914b Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 14 Jul 2000 01:22:07 +0000 Subject: 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. --- usr.sbin/usbd/usbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1