diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-12 04:59:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-12 04:59:58 +0000 |
commit | b8d375bcb1f462d5af5d1f480b32d7b0038417f6 (patch) | |
tree | 93d48ade79cc9d5892f17ff41c33753be6bb0879 /encoding | |
parent | Adding upstream version 1.7.2. (diff) | |
download | apr-b8d375bcb1f462d5af5d1f480b32d7b0038417f6.tar.xz apr-b8d375bcb1f462d5af5d1f480b32d7b0038417f6.zip |
Adding upstream version 1.7.5.upstream/1.7.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'encoding')
-rw-r--r-- | encoding/apr_escape.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/encoding/apr_escape.c b/encoding/apr_escape.c index 6074d73..461eef8 100644 --- a/encoding/apr_escape.c +++ b/encoding/apr_escape.c @@ -571,7 +571,7 @@ APR_DECLARE(apr_status_t) apr_escape_entity(char *escaped, const char *str, found = 1; } else if (toasc && !apr_isascii(c)) { - int offset = apr_snprintf((char *) d, 6, "&#%3.3d;", c); + int offset = apr_snprintf((char *) d, 7, "&#%3.3d;", c); size += offset; d += offset; found = 1; @@ -613,8 +613,7 @@ APR_DECLARE(apr_status_t) apr_escape_entity(char *escaped, const char *str, found = 1; } else if (toasc && !apr_isascii(c)) { - char buf[8]; - size += apr_snprintf(buf, 6, "&#%3.3d;", c); + size += apr_snprintf(NULL, 0, "&#%3.3d;", c); found = 1; } else { |