Skip to content

Commit

Permalink
pack.c: need extra space for the terminal NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz committed Aug 23, 2022
1 parent a641f14 commit f587edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mrbgems/mruby-pack/src/pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ enum pack_type {
#define PACK_BASE64_IGNORE 0xff
#define PACK_BASE64_PADDING 0xfe

const static unsigned char base64chars[64] =
const static unsigned char base64chars[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
const static unsigned char base64_dec_tab[128] =
const static unsigned char base64_dec_tab[] =
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x3e\xff\xff\xff\x3f"
Expand Down

0 comments on commit f587edd

Please sign in to comment.