vmd(8): migrate vmd_vm.vm_ttyname to char array.
authordv <dv@openbsd.org>
Sun, 2 Apr 2023 02:04:10 +0000 (02:04 +0000)
committerdv <dv@openbsd.org>
Sun, 2 Apr 2023 02:04:10 +0000 (02:04 +0000)
commit22647093664a33f48caa6dc481ecead248f3e9f1
treed4ddcadc0c482b24400fac86f347d3313d2a065f
parent0a771212d0fb52595f09c66effaa94633e9ac2f8
vmd(8): migrate vmd_vm.vm_ttyname to char array.

Other structs use a fixed length array already. This allows a vmd_vm
object to be transmitted over an ipc channel, too.

Additionally, solves a segfault caused by a strlcpy(3) in an error
path.

ok mlarkin@
usr.sbin/vmd/config.c
usr.sbin/vmd/vmd.c
usr.sbin/vmd/vmd.h