--- a/src/Pure/Thy/thy_load.ML Thu Jul 19 23:49:04 2007 +0200
+++ b/src/Pure/Thy/thy_load.ML Thu Jul 19 23:49:05 2007 +0200
@@ -99,7 +99,7 @@
let
val master as ((path, _), _) = check_thy dirs name ml;
val (name', imports, uses) =
- ThyHeader.read (Position.path path) (Source.of_string (File.read path));
+ ThyHeader.read (Position.path path) (Source.of_string_limited (File.read path));
val _ = name = name' orelse
error ("Filename " ^ quote (Path.implode (Path.base path)) ^
" does not agree with theory name " ^ quote name');