mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
Fix mis-merge of upstream fix.
We would accidentally make the string one byte too short. Submitted by: Orit Moskovich (oritm mellanox.com) Approved by: re
This commit is contained in:
parent
6b7adc0cbd
commit
babfea95f9
1 changed files with 0 additions and 4 deletions
|
|
@ -105,10 +105,6 @@ sysctl_handle_attr(SYSCTL_HANDLER_ARGS)
|
|||
/* Trim trailing newline. */
|
||||
buf[len] = '\0';
|
||||
}
|
||||
|
||||
/* Trim trailing newline. */
|
||||
len--;
|
||||
((char*)buf)[len] = '\0';
|
||||
}
|
||||
|
||||
/* Leave one trailing byte to append a newline. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue