summaryrefslogtreecommitdiffstats
path: root/qtools/qgstring.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2010-08-22 19:30:14 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2010-08-22 19:30:14 (GMT)
commit20bc00a80ad6bcda730a1762c3700c8f63fa16eb (patch)
treee5faa5e8d675f525b1cd2f397645136f8193b36f /qtools/qgstring.cpp
parent4ad0d24c5b3a0afd99722ae5c33968ff9fa44e2d (diff)
downloadDoxygen-20bc00a80ad6bcda730a1762c3700c8f63fa16eb.zip
Doxygen-20bc00a80ad6bcda730a1762c3700c8f63fa16eb.tar.gz
Doxygen-20bc00a80ad6bcda730a1762c3700c8f63fa16eb.tar.bz2
Release-1.7.1-20100822
Diffstat (limited to 'qtools/qgstring.cpp')
-rw-r--r--qtools/qgstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtools/qgstring.cpp b/qtools/qgstring.cpp
index f42eede..85dd879 100644
--- a/qtools/qgstring.cpp
+++ b/qtools/qgstring.cpp
@@ -118,7 +118,7 @@ bool QGString::resize( uint newlen )
DBG_STR(("%p: 2.QGString::resize() %d:%s\n",this,m_len,m_data?m_data:"<none>"));
return FALSE;
}
- m_data[newlen-1]='\0';
+ m_data[newlen]='\0';
m_len = qstrlen(m_data);
DBG_STR(("%p: 3.QGString::resize() %d:%s\n",this,m_len,m_data?m_data:"<none>"));
return TRUE;