* fixed potential buffer overflow in GetDir()

git-svn-id: branches/i8086@24080 -
This commit is contained in:
nickysn 2013-03-30 16:34:54 +00:00
parent af751145b7
commit efa90dd1f3

View File

@ -103,7 +103,9 @@ begin
GetInOutRes (regs.AX);
Dir := char (DriveNr + 64) + ':\';
exit;
end;
end
else
temp[252] := #0; { to avoid shortstring buffer overflow }
{ conversion to Pascal string including slash conversion }
i:=0;
while (temp[i]<>#0) do