libsec/base58enc: null-terminate the result
This commit is contained in:
parent
dcf96a006d
commit
3bdf242555
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ base58enc(uchar *src, char *dst, int len)
|
|||
}
|
||||
for(; *src == 0; src++)
|
||||
*dst++ = code[0];
|
||||
dst--;
|
||||
*dst-- = 0;
|
||||
while(dst > sdst){
|
||||
t = *sdst;
|
||||
*sdst++ = *dst;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue