diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-29 17:26:56 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-29 17:26:56 +0000 |
commit | 4a3ab6092855f7297ed1b29e89e3423fbece4e5b (patch) | |
tree | ccb53ed6907f9fa7238dd9494a381beb1d6fd48e /puny.c | |
parent | 117ac52cdd4f45bd5402686b9d4f1d91c32cb1dd (diff) |
const-ify var + missing argument
Diffstat (limited to 'puny.c')
-rw-r--r-- | puny.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -91,7 +91,7 @@ digit_value(char c) } static int -insert(char *out, size_t len, int codepoint, size_t i, char **err) +insert(char *out, size_t len, int codepoint, size_t i, const char **err) { int l; char *t; @@ -207,7 +207,7 @@ decode(const char *str, char *out, size_t len, const char **err) n += i / (numpoints+1); /* fail on overflow */ i = i % (numpoints+1); - if (!insert(out, len, n, i)) + if (!insert(out, len, n, i, err)) return 0; numpoints++; ++i; |