diff --git a/src/node_buffer.cc b/src/node_buffer.cc index efd01b716..226baf7aa 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -272,10 +272,10 @@ Handle Buffer::Utf8Slice(const Arguments &args) { return scope.Close(string); } -static char* base64_table = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" - "abcdefghijklmnopqrstuvwxyz" - "0123456789+/"; -static int unbase64_table[] = +static const char *base64_table = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz" + "0123456789+/"; +static const int unbase64_table[] = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 ,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63