Skip to content
Merged
Show file tree
Hide file tree
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 external/qjs_query_string_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ qjs_string_encode(const uint32_t *escape, size_t size, const u_char *src,
u_char *dst)
{
uint8_t byte;
static const u_char hex[16] = "0123456789ABCDEF";
static const u_char hex[] = "0123456789ABCDEF";

do {
byte = *src++;
Expand Down
4 changes: 2 additions & 2 deletions src/njs_sprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ njs_vsprintf(u_char *buf, u_char *end, const char *fmt, va_list args)
njs_bool_t sign;
njs_sprintf_t spf;

static const u_char hexadecimal[16] = "0123456789abcdef";
static const u_char HEXADECIMAL[16] = "0123456789ABCDEF";
static const u_char hexadecimal[] = "0123456789abcdef";
static const u_char HEXADECIMAL[] = "0123456789ABCDEF";
static const u_char nan[] = "[nan]";
static const u_char infinity[] = "[infinity]";

Expand Down
2 changes: 1 addition & 1 deletion src/njs_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ njs_encode_hex(njs_str_t *dst, const njs_str_t *src)
size_t i, len;
const u_char *start;

static const u_char hex[16] = "0123456789abcdef";
static const u_char hex[] = "0123456789abcdef";

len = src->length;
start = src->start;
Expand Down
2 changes: 1 addition & 1 deletion src/njs_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ njs_string_encode(const uint32_t *escape, size_t size, const u_char *src,
u_char *dst)
{
uint8_t byte;
static const u_char hex[16] = "0123456789ABCDEF";
static const u_char hex[] = "0123456789ABCDEF";

do {
byte = *src++;
Expand Down
2 changes: 1 addition & 1 deletion src/qjs_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -2354,7 +2354,7 @@ qjs_hex_encode(JSContext *ctx, const njs_str_t *src, njs_str_t *dst)
size_t i, len;
const u_char *start;

static const u_char hex[16] = "0123456789abcdef";
static const u_char hex[] = "0123456789abcdef";

len = src->length;
start = src->start;
Expand Down