Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ SEXP base64_decode(const char *in, unsigned int inlen) {
/* We might have allocated to much space, because of the padding... */
if (j + 1 < outlen) {
SEXP rout2 = PROTECT(allocVector(RAWSXP, j));
memcpy(RAW(rout2), RAW(rout), j);
if (j) memcpy(RAW(rout2), RAW_RO(rout), j);
UNPROTECT(2);
return rout2;
} else {
Expand Down
Loading