tholm@uvicctr.UUCP (Terrence W. Holm) (05/18/88)
EFTH Minix report #12 - May 1988 - mined1.c patch If you are now using mined(1) with the new termcap(3), you might have noticed that the buffer size is not printed correctly after a ^C or a ^K. This occurs because status_line() is called with the size in the temporary static string buffer area of num_out(), and then bottom_line() uses set_cursor() to move the cursor. Now set_cursor() calls build_string(), which then calls num_out() if the format is "%d", thus clobbering the number which should be printed in the status line. This was not a problem before because the cursor positioning was different in Minix version 1.2 (before termcap(3)). If this is something that bothers you, then you can use the following ugly patch for mined1.c. Otherwise, it is best to wait for version 1.3, as this is only a cosmetic problem, the ^C and ^K still work fine. bottom_line(revfl, s1, s2, inbuf, statfl) . . . char s1_save[100]; /* Added to save s1 from clobber by set_cursor() */ /* 1988-Apr-23 efth */ if( s1 != NIL_PTR ) strcpy( s1_save, s1 ); . . . if (s1 != NIL_PTR) string_print(s1_save); -------------------------------------------------------------------- Edwin L. Froese (in London for the month) Terrence W. Holm {uw-beaver,ubc-cs}!uvicctr!sirius!tholm