summaryrefslogtreecommitdiffstats
path: root/encoding
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-12 04:59:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-12 04:59:59 +0000
commit052282b2d174632c62327a1ccd2d839e8ab3ec9e (patch)
tree9604f20f0dc601f1b8f34d0adbd9fcdc57140b2d /encoding
parentReleasing progress-linux version 1.7.2-3.2~progress7.99u1. (diff)
downloadapr-052282b2d174632c62327a1ccd2d839e8ab3ec9e.tar.xz
apr-052282b2d174632c62327a1ccd2d839e8ab3ec9e.zip
Merging upstream version 1.7.5.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'encoding')
-rw-r--r--encoding/apr_escape.c5
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 {