summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhpa <hpa>2005-08-18 20:53:39 +0000
committerhpa <hpa>2005-08-18 20:53:39 +0000
commit1deff649355f0cdf02e7b8ffc20560d885004183 (patch)
tree98eadd356a164238216639bc1aaac5a7f88d583c
parent47db0904ca61ad48b406053ab3817dfa8f7ee6e4 (diff)
downloadsyslinux-1deff649355f0cdf02e7b8ffc20560d885004183.tar.gz
Make sure to zero-terminate display files
-rw-r--r--conio.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/conio.inc b/conio.inc
index af956d88..5860333e 100644
--- a/conio.inc
+++ b/conio.inc
@@ -223,6 +223,8 @@ msg_viewimage:
push es
push ds
pop es ; ES <- DS
+ mov si,[VGAFilePtr]
+ mov byte [si],0 ; Zero-terminate filename
mov si,VGAFileBuf
mov di,VGAFileMBuf
push di