Преглед изворни кода

* small fix for argument parsing by Joao Morais (via maillist)

git-svn-id: trunk@13586 -
marco пре 16 година
родитељ
комит
f2883ac9ed
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/fcl-base/src/custapp.pp

+ 1 - 1
packages/fcl-base/src/custapp.pp

@@ -466,7 +466,7 @@ begin
           end
         else // Short Option.
           begin
-          HaveArg:=(I<ParamCount) and (Length(ParamStr(I+1))>0) and (ParamStr(I+1)[i]<>FOptionChar);
+          HaveArg:=(I<ParamCount) and (Length(ParamStr(I+1))>0) and (ParamStr(I+1)[1]<>FOptionChar);
           If HaveArg then
             OV:=Paramstr(I+1);
           If Not CaseSensitiveOptions then