diff options
author | Derick Rethans <derick@php.net> | 2002-05-01 20:11:09 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-05-01 20:11:09 +0000 |
commit | 8fe3c0c5d4f46115e8d8c52fc6d64202c1760603 (patch) | |
tree | 92a491138671657fb3632013aeee69df74858960 | |
parent | 07efbff8560d62d88c9ff0ee4be537115207a162 (diff) | |
download | php-git-8fe3c0c5d4f46115e8d8c52fc6d64202c1760603.tar.gz |
- Fix String is not zero-terminated error in base64_decode
-rw-r--r-- | ext/standard/base64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/base64.c b/ext/standard/base64.c index 4cd8c36cc6..de4adcae58 100644 --- a/ext/standard/base64.c +++ b/ext/standard/base64.c @@ -188,7 +188,7 @@ unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_ if(ret_length) { *ret_length = j; } - result[k] = '\0'; + result[j] = '\0'; return result; } /* }}} */ |