30c30
< * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#33 $
---
> * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#34 $
124,125c124,127
< /* Remove trailing new line character. */
< if ((nl = strrchr(linestr, '\n')) != NULL)
---
> /* Remove trailing new line character and white space. */
> nl = strchr(linestr, '\0') - 1;
> while (nl >= linestr && ('\n' == *nl || ' ' == *nl ||
> '\t' == *nl)) {
126a129,130
> nl--;
> }
< * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#33 $
---
> * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_control.c#34 $
124,125c124,127
< /* Remove trailing new line character. */
< if ((nl = strrchr(linestr, '\n')) != NULL)
---
> /* Remove trailing new line character and white space. */
> nl = strchr(linestr, '\0') - 1;
> while (nl >= linestr && ('\n' == *nl || ' ' == *nl ||
> '\t' == *nl)) {
126a129,130
> nl--;
> }