summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-04-10 16:49:39 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-04-10 16:49:39 +0200
commit3f1d323497e5aefce65a3758d1bc408130d9bbe0 (patch)
tree4b07e58ed00debd434c1a383ca91cc767bf23ea5
parentbf378f4350b0e92efcefd9c0c34f7b5c57c098f4 (diff)
sfeed.c: slightly reduce stack size for entities
A numeric entity could be 5 bytes, so use a round number of 8 bytes. No other change intended and no performance difference noticed.
-rw-r--r--sfeed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed.c b/sfeed.c
index ae6a955..e96ffa3 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -754,7 +754,7 @@ static void
xmlattrentity(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl,
const char *data, size_t datalen)
{
- char buf[16];
+ char buf[8];
int len;
/* handles transforming inline XML to data */
@@ -831,7 +831,7 @@ xmldata(XMLParser *p, const char *s, size_t len)
static void
xmldataentity(XMLParser *p, const char *data, size_t datalen)
{
- char buf[16];
+ char buf[8];
int len;
if (!ctx.field)