Browse Source

* length check for readnumeric

peter 25 years ago
parent
commit
9920510f64
1 changed files with 5 additions and 2 deletions
  1. 5 2
      rtl/inc/text.inc

+ 5 - 2
rtl/inc/text.inc

@@ -667,7 +667,7 @@ begin
   repeat
     if not NextChar(f,s) then
       exit;
-  until f.BufPtr^[f.BufPos] in [#9,#10,#13,' '];
+  until (length(s)=high(s)) or (f.BufPtr^[f.BufPos] in [#9,#10,#13,' ']);
 end;
 
 
@@ -1009,7 +1009,10 @@ end;
 
 {
   $Log$
-  Revision 1.70  2000-03-17 21:27:56  jonas
+  Revision 1.71  2000-03-19 08:36:41  peter
+    * length check for readnumeric
+
+  Revision 1.70  2000/03/17 21:27:56  jonas
     * fixed declaration of val_int64 (removed destsize parameter)
     * fixed val_int64 and val_qword so they reject invalid input
       (u >= base)