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 sh...@apache.org on 2008/01/25 07:17:18 UTC
svn commit: r615121 - in /webservices/axis2/trunk/c/util:
include/axutil_base64.h src/base64.c
Author: shankar
Date: Thu Jan 24 22:17:17 2008
New Revision: 615121
URL: http://svn.apache.org/viewvc?rev=615121&view=rev
Log:
solving base64_decode_len problem
Modified:
webservices/axis2/trunk/c/util/include/axutil_base64.h
webservices/axis2/trunk/c/util/src/base64.c
Modified: webservices/axis2/trunk/c/util/include/axutil_base64.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axutil_base64.h?rev=615121&r1=615120&r2=615121&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axutil_base64.h (original)
+++ webservices/axis2/trunk/c/util/include/axutil_base64.h Thu Jan 24 22:17:17 2008
@@ -94,7 +94,7 @@
/*
* Decode a string to plain text
- * @param plain_dst The destination string for the plain text
+ * @param plain_dst The destination string for the plain text. size of this should be axutil_base64_decode_len + 1
* @param coded_src The encoded string
* @return the length of the plain text string
*/
@@ -105,7 +105,7 @@
/*
* Decode an EBCDIC string to plain text
- * @param plain_dst The destination string for the plain text
+ * @param plain_dst The destination string for the plain text. size of this should be axutil_base64_decode_len
* @param coded_src The encoded string
* @return the length of the plain text string
*/
Modified: webservices/axis2/trunk/c/util/src/base64.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/base64.c?rev=615121&r1=615120&r2=615121&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/src/base64.c (original)
+++ webservices/axis2/trunk/c/util/src/base64.c Thu Jan 24 22:17:17 2008
@@ -107,7 +107,7 @@
if (nprbytes & 0x03) nbytesdecoded += (nprbytes & 0x03) - 1;
- return nbytesdecoded + 1;
+ return nbytesdecoded;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org