mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 23:19:00 +00:00
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.
This commit is contained in:
parent
4944b91311
commit
43be5ea431
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63098
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user