From b321c1923ae491673db071d12a2a6c8d95419681 Mon Sep 17 00:00:00 2001 From: Charlie Gordon Date: Sat, 4 Mar 2023 15:59:09 +0100 Subject: [PATCH] increase string lengths in script fragments * bump buffer size from 256 to 2048 in format and variable retrieval * number VERSION to 5.4.1g --- VERSION | 2 +- qescript.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 6a51f49..1772217 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.4.1f +5.4.1g diff --git a/qescript.c b/qescript.c index 8b3313c..4d949cf 100644 --- a/qescript.c +++ b/qescript.c @@ -382,7 +382,7 @@ static int expect_token(QEmacsDataSource *ds, int tok) { static int qe_cfg_getvalue(QEmacsDataSource *ds, QEValue *sp) { if (sp->type == TOK_ID) { #ifndef CONFIG_TINY - char buf[256]; + char buf[2048]; int num; // XXX: qe_get_variable should populate a QEValue switch (qe_get_variable(ds->s, sp->u.str, buf, sizeof(buf), &num, 0)) { @@ -489,7 +489,7 @@ static int qe_cfg_append(QEmacsDataSource *ds, QEValue *sp, const char *p, size_ } static int qe_cfg_format(QEmacsDataSource *ds, QEValue *sp) { - char buf[256]; + char buf[2048]; char fmt[16]; /* Use function pointer and cast to prevent warning on variable format */ int (*fun)(char *buf, size_t size, const char *fmt, ...) =