[PATCH] Fix off by one error
Wald Commits
scm-commit at wald.intevation.org
Thu Apr 24 11:41:44 CEST 2014
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1398332502 0
# Node ID 6c4f526a4c5b618f3890bccedeb55830b635c4d4
# Parent bcae22d57e673059860ddbdf256fdd6549d2a4e7
Fix off by one error
diff -r bcae22d57e67 -r 6c4f526a4c5b ui/sslhelp.cpp
--- 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);
}
More information about the Trustbridge-commits
mailing list