mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-15 15:06:42 +00:00
Don't forget to null-terminate string we got from sysctl (f.e. in 'A' format).
Stack garbadge may be printed otherwise.
This commit is contained in:
parent
cc8371bc71
commit
76d3dc5297
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96234
@ -518,7 +518,7 @@ show_var(int *oid, int nlen)
|
||||
fwrite(val, 1, len, stdout);
|
||||
return (0);
|
||||
}
|
||||
|
||||
val[len] = '\0';
|
||||
fmt = buf;
|
||||
oidfmt(oid, nlen, fmt, &kind);
|
||||
p = val;
|
||||
|
Loading…
Reference in New Issue
Block a user