- Fix String is not zero-terminated error in base64_decode

This commit is contained in:
Derick Rethans 2002-05-01 20:11:09 +00:00
parent 07efbff856
commit 8fe3c0c5d4

View File

@ -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;
}
/* }}} */