diff --git a/test/b64decode.c b/test/b64decode.c index 9288050..960b25b 100644 --- a/test/b64decode.c +++ b/test/b64decode.c @@ -8,20 +8,23 @@ void b64encode(const char* c) { unsigned int dlen; scan_base64(c,buf,&dlen); buffer_put(buffer_1,buf,dlen); - buffer_putnlflush(buffer_1); } main(int argc,char* argv[]) { int i; for (i=1; i0) { + src[len]=0; + b64encode(src); + } + buffer_putnlflush(buffer_1); if (len==-1) return(1); - src[len]=0; - b64encode(src); } return 0; }