From 33139510b92e67317b450bd29153a5fe63918000 Mon Sep 17 00:00:00 2001 From: LDA Date: Tue, 27 Aug 2024 18:50:56 +0200 Subject: [PATCH] [FIX] Fix j2s generation issue Aie... --- tools/j2s.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/j2s.c b/tools/j2s.c index c7d4351..304741e 100644 --- a/tools/j2s.c +++ b/tools/j2s.c @@ -563,11 +563,12 @@ Main(Array * args) if (IsDelimited(fieldType, '{', '}') || IsDelimited(fieldType, '[', ']')) { + char end = fieldType[strlen(fieldType) - 1]; fieldType[strlen(fieldType) - 1] = '\0'; StreamPrintf(headerFile, " %s /* of %s */ %s;\n", cType, fieldType + 1, field); - fieldType[strlen(fieldType)] = '}'; + fieldType[strlen(fieldType)] = end; } else { -- 2.45.2