Fix a half-entered command line when getting clobbered when pressing
an F key that in turn invokes an LSS graphic. This was used by
duplexing the command line buffer as LSS decompression space.
Allocate a separate buffer, but move the legacy graphic variables to
.bss2 to avoid overflow.
Reported-by: Михаил <from.miha@gmail.com>
Debugged-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
; of this byte.
UsingVGA db 0
- section .bss1
+ section .bss2
alignb 4
LSSHeader equ $
LSSMagic resd 1 ; Magic number
VGAFileBufEnd equ $
VGAFileMBuf resb FILENAME_MAX ; Mangled VGA image name
-; We need a buffer of 640+80 bytes. At this point, command_line should
-; not be in use, so use that buffer.
-VGARowBuffer equ command_line
+ alignb 4
+VGARowBuffer resb 640+80 ; Decompression buffer