commit 2e23f1719e165b0ee37cfd67ae82d4645641cb67
Author: Richard Heck <[email protected]>
Date: Thu Feb 13 17:51:43 2014 -0500
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.
diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp
index 2460c48..a50a865 100644
--- a/src/BiblioInfo.cpp
+++ b/src/BiblioInfo.cpp
@@ -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;
diff --git a/src/BiblioInfo.h b/src/BiblioInfo.h
index 36750d8..1bd428c 100644
--- a/src/BiblioInfo.h
+++ b/src/BiblioInfo.h
@@ -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: