Skip to content

Commit 080b2cf

Browse files
committed
Declare the BASE64 alphabet as array of chars; not as a pointer
1 parent efd0c27 commit 080b2cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/utils/base64/encode.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace detail {
5252
// from the input sequence to encode.
5353
template <typename Value>
5454
char encode_value(Value value) {
55-
static char const * encoding = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
55+
static char const encoding[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
5656
return encoding[static_cast<unsigned int>(value)];
5757
}
5858

0 commit comments

Comments
 (0)