mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-20 09:09:41 +01:00
* fix for wrong pointer increment (causing crash/heap corruptions)
git-svn-id: trunk@2337 -
This commit is contained in:
parent
0bbead8114
commit
bbd4886809
@ -173,7 +173,7 @@ begin
|
||||
(* Work around a bug in OS/2 - argument to DosExecPgm *)
|
||||
(* should not cross 64K boundary. *)
|
||||
if ((PtrUInt (Args) + 1024) and $FFFF) < 1024 then
|
||||
Inc (Args, 1024);
|
||||
Inc (pointer (Args), 1024);
|
||||
ArgSize := 0;
|
||||
Move (QName [1], Args^ [ArgSize], Length (QName));
|
||||
Inc (ArgSize, Length (QName));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user