* fixed null termination of cmdline (based on patch by C Western,

mantis #22742) -- that function seems like a good candidate to
    put in a shared include file though

git-svn-id: trunk@22270 -
This commit is contained in:
Jonas Maebe 2012-08-30 21:30:31 +00:00
parent 8a4c12ab36
commit c71cb9dc69
6 changed files with 6 additions and 6 deletions

View File

@ -204,7 +204,7 @@ begin
buf[bufsize]:='"';
inc(bufsize);
end;
if i<argc then
if i<argc-1 then
buf[bufsize]:=' '
else
buf[bufsize]:=#0;

View File

@ -265,7 +265,7 @@ begin
buf[bufsize]:='"';
inc(bufsize);
end;
if i<argc then
if i<argc-1 then
buf[bufsize]:=' '
else
buf[bufsize]:=#0;

View File

@ -197,7 +197,7 @@ begin
buf[bufsize]:='"';
inc(bufsize);
end;
if i<argc then
if i<argc-1 then
buf[bufsize]:=' '
else
buf[bufsize]:=#0;

View File

@ -235,7 +235,7 @@ begin
buf[bufsize]:='"';
inc(bufsize);
end;
if i<argc then
if i<argc-1 then
buf[bufsize]:=' '
else
buf[bufsize]:=#0;

View File

@ -232,7 +232,7 @@ begin
buf[bufsize]:='"';
inc(bufsize);
end;
if i<argc then
if i<argc-1 then
buf[bufsize]:=' '
else
buf[bufsize]:=#0;

View File

@ -209,7 +209,7 @@ begin
buf[bufsize]:='"';
inc(bufsize);
end;
if i<argc then
if i<argc-1 then
buf[bufsize]:=' '
else
buf[bufsize]:=#0;