This is meant to be almost UINT_MAX, but needn't really be that

big, and I don't see the point of pulling in limits.h.
This commit is contained in:
Richard Heck 2014-02-13 17:51:43 -05:00
parent 30a01da78f
commit 2e23f1719e
2 changed files with 2 additions and 2 deletions

View File

@ -477,7 +477,7 @@ docstring BibTeXInfo::expandFormat(docstring const & format,
// to eventual attempts to convert LaTeX macros to unicode. See bug
// #8944. This is perhaps not the best solution, but it will have to
// do for now.
static size_t max_keysize = 128;
static size_t const max_keysize = 128;
odocstringstream ret; // return value
string key;
bool scanning_key = false;

View File

@ -114,7 +114,7 @@ private:
/// be the one referenced in the crossref field.
docstring getValueForKey(std::string const & key, Buffer const & buf,
docstring const & before, docstring const & after, docstring const & dialog,
BibTeXInfo const * const xref, size_t maxsize = 1024) const;
BibTeXInfo const * const xref, size_t maxsize = 4096) const;
/// replace %keys% in a format string with their values
/// called from getInfo()
/// format strings may contain: