From 2a34df070451507800c2708e82f1218f9e5ef3ec Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Tue, 23 Aug 2005 13:58:03 +0000 Subject: [PATCH] fix omf with ipx Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2287 --- src/dos/dos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dos/dos.cpp b/src/dos/dos.cpp index 9ab3f757..fccf1413 100644 --- a/src/dos/dos.cpp +++ b/src/dos/dos.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: dos.cpp,v 1.85 2005-08-08 13:33:44 c2woody Exp $ */ +/* $Id: dos.cpp,v 1.86 2005-08-23 13:58:03 qbix79 Exp $ */ #include #include @@ -252,7 +252,7 @@ static Bitu DOS_21Handler(void) { { Bit8u difference; char string[1024]; - MEM_StrCopy(SegPhys(ds)+reg_si,string,1024); + MEM_StrCopy(SegPhys(ds)+reg_si,string,1023); // 1024 toasts the stack reg_al=FCB_Parsename(SegValue(es),reg_di,reg_al ,string, &difference); reg_si+=difference; }