mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-24 14:54:54 +00:00
Fix CID 1214587
This commit is contained in:
parent
fd3251d99c
commit
7923e8a6b4
@ -280,9 +280,8 @@ int main(int argc, char **argv) {
|
||||
switch (b64mode) {
|
||||
case 1: // encode
|
||||
{
|
||||
ut8 *out = malloc (INSIZE);
|
||||
int binlen = strlen (hashstr);
|
||||
out = malloc (((binlen+1)*4)/3);
|
||||
ut8 *out = malloc (((binlen+1)*4)/3);
|
||||
if (out) {
|
||||
r_base64_encode (out, (const ut8*)hashstr, binlen);
|
||||
printf ("%s\n", out);
|
||||
|
Loading…
x
Reference in New Issue
Block a user