]> git.lyx.org Git - features.git/blobdiff - src/mathed/MathFactory.cpp
Experiment: limit size of strings read from lib/symbols
[features.git] / src / mathed / MathFactory.cpp
index 3198f80de66688c3da5617e6bc7820345906bf46..2cd045b0ccb7930ce32f0a88e94a16083dba433d 100644 (file)
@@ -74,6 +74,7 @@
 #include "LyX.h" // use_gui
 #include "OutputParams.h"
 
+#include <iomanip>
 
 using namespace std;
 using namespace lyx::support;
@@ -188,7 +189,7 @@ void initSymbols()
                        string extra;
                        string xmlname;
                        bool hidden = false;
-                       is >> macro >> requires;
+                       is >> setw(65536) >> macro >> requires;
                        if ((is >> xmlname)) {
                                extra = requires;
                                if (!(is >> requires))