tFixing a segfault in new code. - rohrpost - A commandline mail client to change the world as we see it.
 (HTM) git clone git://r-36.net/rohrpost
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 3c36af4748cd8f0b941085113d53b4baaa801eee
 (DIR) parent 4ea5edb75b238c6ca704690100128f1fe95e1d7b
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Sun,  2 Apr 2017 21:49:35 +0200
       
       Fixing a segfault in new code.
       
       Diffstat:
         base64.c                            |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/base64.c b/base64.c
       t@@ -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] == ' ')