Browse Source

* fixed crash when calling a procvar with too many parameters
(mantis 8109)

git-svn-id: trunk@5951 -

Jonas Maebe 18 years ago
parent
commit
38d54234d7
2 changed files with 2 additions and 1 deletions
  1. 1 1
      compiler/ncal.pas
  2. 1 0
      tests/webtbs/tw7963.pp

+ 1 - 1
compiler/ncal.pas

@@ -1892,7 +1892,7 @@ implementation
                 begin
                 begin
                    if assigned(pt) then
                    if assigned(pt) then
                      current_filepos:=pt.fileinfo;
                      current_filepos:=pt.fileinfo;
-                   CGMessage1(parser_e_wrong_parameter_size,symtableprocentry.realname);
+                   CGMessage1(parser_e_wrong_parameter_size,'<Procedure Variable>');
                    goto errorexit;
                    goto errorexit;
                 end;
                 end;
            end
            end

+ 1 - 0
tests/webtbs/tw7963.pp

@@ -12,4 +12,5 @@ var
 
 
 begin
 begin
   Proc(a, b);
   Proc(a, b);
+  Proc(a, b, a, b);
 end.
 end.