You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ka...@apache.org on 2007/11/21 11:33:06 UTC
svn commit: r597020 - /webservices/axis2/trunk/c/util/src/base64.c
Author: kaushalye
Date: Wed Nov 21 02:33:06 2007
New Revision: 597020
URL: http://svn.apache.org/viewvc?rev=597020&view=rev
Log:
Bug fix in base64 decode length calculation
Modified:
webservices/axis2/trunk/c/util/src/base64.c
Modified: webservices/axis2/trunk/c/util/src/base64.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/base64.c?rev=597020&r1=597019&r2=597020&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/base64.c (original)
+++ webservices/axis2/trunk/c/util/src/base64.c Wed Nov 21 02:33:06 2007
@@ -94,7 +94,7 @@
axutil_base64_decode_len(
const char *bufcoded)
{
- int nbytesdecoded;
+ int nbytesdecoded;
register const unsigned char *bufin;
register int nprbytes;
@@ -107,7 +107,8 @@
if (nprbytes & 0x03) nbytesdecoded += (nprbytes & 0x03) - 1;
- return nbytesdecoded;
+ return nbytesdecoded + 1;
+
}
AXIS2_EXTERN int AXIS2_CALL
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org