From ee0edd4a71c034c6c09cb49456f99493f20666ad Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 10 Aug 1998 16:48:42 +0000 Subject: allow -d option to work with -c [change screen] --- sys/arch/i386/isa/pcvt/Util/scon/scon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/arch/i386/isa/pcvt') diff --git a/sys/arch/i386/isa/pcvt/Util/scon/scon.c b/sys/arch/i386/isa/pcvt/Util/scon/scon.c index 91732a8f672..6df718cfdda 100644 --- a/sys/arch/i386/isa/pcvt/Util/scon/scon.c +++ b/sys/arch/i386/isa/pcvt/Util/scon/scon.c @@ -461,7 +461,7 @@ char *argv[]; if(vflag) printf("processing option -c, setting current screen to %d\n",current); - if(ioctl(1, VGASETSCREEN, &screeninfo) == -1) + if(ioctl(fd, VGASETSCREEN, &screeninfo) == -1) { perror("ioctl VGASETSCREEN failed"); exit(1); -- cgit v1.2.3