X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=authfile.c;h=93157a4e1a9a8460c46a6fc609e1b18a62fd5885;hp=89d32438383d935b08fa85ee18c784a740c55695;hb=a91fa6c2aaa95825f3d9db6c7ed9291e7b2b7263;hpb=582ef0444a7687b9d8b08b484d8584f5b35618e5 diff --git a/authfile.c b/authfile.c index 89d3243..93157a4 100644 --- a/authfile.c +++ b/authfile.c @@ -190,7 +190,7 @@ struct _auth_obj authfile(const char *userid, const char *password, oldmask = umask(077); if ((fp = fopen(nfn, "w"))) { - int bsize = ((ao.datasize-1)/3+1)*4+2; /* why +2 ??? */ + int bsize = ((ao.datasize-1)/3+1)*4+1; char *b64 = alloca(bsize); if (b64_encode(ao.data, ao.datasize, b64, &bsize)) {