diff options
Diffstat (limited to 'b64f.c')
-rw-r--r-- | b64f.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/b64f.c b/b64f.c index 9904720..95acb6f 100644 --- a/b64f.c +++ b/b64f.c @@ -61,7 +61,7 @@ int main(int argc,char** argv) { } bcoded = b64_decode(argv[2],blen,txt); - txt[blen] = '\0'; + txt[bcoded] = '\0'; printf("Decoded text from base64: %s", txt); free(txt); break; |