Browse Source

+ fix from Robert Zierer

michael 22 years ago
parent
commit
8822018ebd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      utils/tply/lexrules.pas

+ 4 - 1
utils/tply/lexrules.pas

@@ -206,7 +206,10 @@ function act_char : Char;
     else
       begin
         while pop_macro do ;
-        act_char := buf[bufptr];
+        if (bufptr>0) then
+          act_char := buf[bufptr]
+        else  
+          act_char:=#0;
       end
   end(*act_char*);