sfeed.c: slightly reduce stack size for entities - sfeed - RSS and Atom parser | |
git clone git://git.codemadness.org/sfeed | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 3f1d323497e5aefce65a3758d1bc408130d9bbe0 | |
parent bf378f4350b0e92efcefd9c0c34f7b5c57c098f4 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Mon, 10 Apr 2023 16:49:39 +0200 | |
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. | |
Diffstat: | |
M sfeed.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git 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) |