diff ui/sslhelp.cpp @ 475:6c4f526a4c5b

Fix off by one error
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 24 Apr 2014 09:41:42 +0000
parents f9b0014cff97
children c8a6a3e6bdeb
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/