aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/encodings.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-23 01:30:58 +0100
committerKim Alvefur <zash@zash.se>2017-03-23 01:30:58 +0100
commit597d3174276ee35ac59a7eb2109469126d054310 (patch)
tree8907b93b95ab3e10a7e3fc7aaef48a769cd190b0 /util-src/encodings.c
parent6e9e2d5167ba8b5261b2038bb9360f06681e9483 (diff)
parent711e2c8713466ff5fa8d1ed29dcf04d6e2b6e0da (diff)
downloadprosody-597d3174276ee35ac59a7eb2109469126d054310.tar.gz
prosody-597d3174276ee35ac59a7eb2109469126d054310.zip
Merge 0.10->trunk
Diffstat (limited to 'util-src/encodings.c')
-rw-r--r--util-src/encodings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c
index a633d7fa..465819d5 100644
--- a/util-src/encodings.c
+++ b/util-src/encodings.c
@@ -173,7 +173,7 @@ static const luaL_Reg Reg_base64[] = {
* Decode one UTF-8 sequence, returning NULL if byte sequence is invalid.
*/
static const char *utf8_decode(const char *o, int *val) {
- static unsigned int limits[] = {0xFF, 0x7F, 0x7FF, 0xFFFF};
+ static const unsigned int limits[] = {0xFF, 0x7F, 0x7FF, 0xFFFF};
const unsigned char *s = (const unsigned char *)o;
unsigned int c = s[0];
unsigned int res = 0; /* final result */