소스 검색

+ fix from Robert Zierer

michael 22 년 전
부모
커밋
8822018ebd
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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*);