cvs: php4 /ext/standard base64.c
| From: | Derick Rethans | Date: | Wed, 01 May 2002 20:11:10 +0000 |
| Subject: | cvs: php4 /ext/standard base64.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11598@lists.php.net to get a copy of this message | ||
derick Wed May 1 16:11:10 2002 EDT
Modified files:
/php4/ext/standard base64.c
Log:
- Fix String is not zero-terminated error in base64_decode
Index: php4/ext/standard/base64.c
diff -u php4/ext/standard/base64.c:1.30 php4/ext/standard/base64.c:1.31
--- php4/ext/standard/base64.c:1.30 Thu Apr 11 04:07:22 2002
+++ php4/ext/standard/base64.c Wed May 1 16:11:09 2002
@@ -15,7 +15,7 @@
| Author: Jim Winstead <jimw@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: base64.c,v 1.30 2002/04/11 08:07:22 helly Exp $ */
+/* $Id: base64.c,v 1.31 2002/05/01 20:11:09 derick Exp $ */
#include <string.h>
@@ -188,7 +188,7 @@
if(ret_length) {
*ret_length = j;
}
- result[k] = '\0';
+ result[j] = '\0';
return result;
}
/* }}} */