瀏覽代碼

* Memory allocation bug fixed

yuri 22 年之前
父節點
當前提交
dbffba731e
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      rtl/os2/system.pas

+ 6 - 2
rtl/os2/system.pas

@@ -31,7 +31,7 @@ interface
   {$define SYSTEMEXCEPTIONDEBUG}
   {.$define IODEBUG}
   {.$define DEBUGENVIRONMENT}
-  {$define DEBUGARGUMENTS}
+  {.$define DEBUGARGUMENTS}
 {$endif SYSTEMDEBUG}
 
 { $DEFINE OS2EXCEPTIONS}
@@ -1174,6 +1174,7 @@ begin
   repeat
     Inc(Arglen);
   until (pc[Arglen]=#0);
+  Inc(Arglen);
   pc:=GetMem(ArgLen);
   move(cmdline^, pc^, arglen);
   Arglen:=0;
@@ -1418,7 +1419,10 @@ begin
 end.
 {
   $Log$
-  Revision 1.58  2003-11-19 16:50:21  yuri
+  Revision 1.59  2003-11-19 18:21:11  yuri
+  * Memory allocation bug fixed
+
+  Revision 1.58  2003/11/19 16:50:21  yuri
   * Environment and arguments initialization now native
 
   Revision 1.57  2003/11/06 17:20:44  yuri