diff options
-rw-r--r-- | usr.sbin/vmctl/vmctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmctl/vmctl.c b/usr.sbin/vmctl/vmctl.c index dcded076005..1e99f13508d 100644 --- a/usr.sbin/vmctl/vmctl.c +++ b/usr.sbin/vmctl/vmctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmctl.c,v 1.74 2020/03/11 12:47:49 jasper Exp $ */ +/* $OpenBSD: vmctl.c,v 1.75 2020/09/02 19:57:33 tb Exp $ */ /* * Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org> @@ -789,7 +789,7 @@ print_vm_info(struct vmop_info_result *list, size_t ct) tty = "-"; /* get tty - skip /dev/ path */ else if ((tty = strrchr(vmi->vir_ttyname, - '/')) == NULL || ++tty == '\0') + '/')) == NULL || *++tty == '\0') tty = list[i].vir_ttyname; (void)fmt_scaled(vir->vir_used_size, curmem); |