From 7c207c6233eb1958ade82114178d09582d12dd7f Mon Sep 17 00:00:00 2001 From: Leo Broukhis Date: Wed, 12 Dec 2018 09:37:20 -0800 Subject: [PATCH] BESM6: Printer file position must be updated. --- BESM6/besm6_printer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/BESM6/besm6_printer.c b/BESM6/besm6_printer.c index 4fb2a67f..4ffcd712 100644 --- a/BESM6/besm6_printer.c +++ b/BESM6/besm6_printer.c @@ -144,6 +144,7 @@ void printer_control (int num, uint32 cmd) case 1: /* linefeed */ READY &= ~(PRN1_LINEFEED >> num); offset_gost_write (num, u->fileref); + u->pos = ftell(u->fileref); dev->feed = LINEFEED_SYNC; break; case 4: /* start */