Fix compilation.
Pointy hat to: ken
This commit is contained in:
parent
11ed25f278
commit
e1ee2f21d9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249701
@ -1147,15 +1147,11 @@ copy_element_status(struct ch_softc *softc,
|
|||||||
ces->ces_designator_length = devid->designator_length;
|
ces->ces_designator_length = devid->designator_length;
|
||||||
/*
|
/*
|
||||||
* Make sure we are always NUL terminated. The
|
* Make sure we are always NUL terminated. The
|
||||||
* buffer should be sized for the maximum
|
* This won't matter for the binary code set,
|
||||||
* designator length plus 1, but this will make sure
|
* since the user will only pay attention to the
|
||||||
* there is always a NUL at the end. This won't
|
* length field.
|
||||||
* matter for the binary code set, since the user
|
|
||||||
* will only pay attention to the length field.
|
|
||||||
*/
|
*/
|
||||||
ces->ces_designator[
|
ces->ces_designator[devid->designator_length]= '\0';
|
||||||
MIN(sizeof(ces->ces_designator) - 1,
|
|
||||||
devid->designator_length)]= '\0';
|
|
||||||
}
|
}
|
||||||
if (devid->piv_assoc_designator_type &
|
if (devid->piv_assoc_designator_type &
|
||||||
READ_ELEMENT_STATUS_PIV_SET) {
|
READ_ELEMENT_STATUS_PIV_SET) {
|
||||||
|
Loading…
Reference in New Issue
Block a user