changeset 475:6c4f526a4c5b

Fix off by one error
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 24 Apr 2014 09:41:42 +0000
parents bcae22d57e67
children e8d761c2d2d1
files ui/sslhelp.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ui/sslhelp.cpp	Wed Apr 23 16:54:16 2014 +0000
+++ b/ui/sslhelp.cpp	Thu Apr 24 09:41:42 2014 +0000
@@ -18,7 +18,7 @@
 {
     char errbuf[1020];
     polarssl_strerror(ret, errbuf, 1020);
-    errbuf[1020] = '\0'; /* Just to be sure */
+    errbuf[1019] = '\0'; /* Just to be sure */
     return QString::fromLatin1(errbuf);
 }
 

http://wald.intevation.org/projects/trustbridge/