diff options
Diffstat (limited to 'qtools/scstring.cpp')
-rw-r--r-- | qtools/scstring.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qtools/scstring.cpp b/qtools/scstring.cpp index ebf54a9..a265afe 100644 --- a/qtools/scstring.cpp +++ b/qtools/scstring.cpp @@ -34,7 +34,7 @@ SCString::SCString(int size) m_data = (char *)malloc(size); if (m_data) { - m_data[0]='\0'; + if (size>1) memset(m_data,' ',size-1); m_data[size-1]='\0'; } } |