summaryrefslogtreecommitdiffstats
path: root/qtools
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2011-02-17 19:40:38 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2011-02-17 19:40:38 (GMT)
commit712ab49d04f9fe525b8552f74945945347e3b553 (patch)
treec2ee5bb85f9acfb3caa8479c32b49a1bf03de752 /qtools
parenteba15fd2fe9a0b186fbf7b63d7eab729057c7f6b (diff)
downloadDoxygen-712ab49d04f9fe525b8552f74945945347e3b553.zip
Doxygen-712ab49d04f9fe525b8552f74945945347e3b553.tar.gz
Doxygen-712ab49d04f9fe525b8552f74945945347e3b553.tar.bz2
Release-1.7.3-20110217
Diffstat (limited to 'qtools')
-rw-r--r--qtools/Doxyfile2
-rw-r--r--qtools/scstring.cpp9
2 files changed, 6 insertions, 5 deletions
diff --git a/qtools/Doxyfile b/qtools/Doxyfile
index 9e2a9f4..329fb48 100644
--- a/qtools/Doxyfile
+++ b/qtools/Doxyfile
@@ -171,7 +171,7 @@ FORMULA_TRANSPARENT = YES
USE_MATHJAX = NO
MATHJAX_RELPATH = http://www.mathjax.org/mathjax
SEARCHENGINE = YES
-SERVER_BASED_SEARCH = NO
+SERVER_BASED_SEARCH = YES
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
diff --git a/qtools/scstring.cpp b/qtools/scstring.cpp
index 698e036..26d3a52 100644
--- a/qtools/scstring.cpp
+++ b/qtools/scstring.cpp
@@ -141,15 +141,16 @@ SCString &SCString::sprintf( const char *format, ... )
va_list ap;
va_start( ap, format );
uint l = length();
- const uint minlen=256;
+ const uint minlen=4095;
if (l<minlen)
{
if (m_data)
- m_data = (char *)realloc(m_data,minlen);
+ m_data = (char *)realloc(m_data,minlen+1);
else
- m_data = (char *)malloc(minlen);
+ m_data = (char *)malloc(minlen+1);
+ m_data[minlen]='\0';
}
- vsprintf( m_data, format, ap );
+ vsnprintf( m_data, minlen, format, ap );
resize( qstrlen(m_data) + 1 ); // truncate
va_end( ap );
return *this;