commit 3c36af4748cd8f0b941085113d53b4baaa801eee
parent 4ea5edb75b238c6ca704690100128f1fe95e1d7b
Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 2 Apr 2017 21:49:35 +0200
Fixing a segfault in new code.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base64.c b/base64.c
@@ -87,7 +87,7 @@ b64dec(char *istr, int *len)
/*
* If there is something prepended to the base64 block, take it as-is.
*/
- for (uglyline = 1; uglyline == 1; l = p) {
+ for (uglyline = 1, l = 0; uglyline == 1; l = p) {
uglyline = 0;
for (; istr[l] != '\n' && istr[l]; l++) {
if (istr[l] == ' ')