From d1332d7f35f84165fbc71c4d2e6eccb1e311e3ad Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Thu, 25 Feb 2021 17:17:19 +0200 Subject: [PATCH] code cleanup: remove unnecessary text_buf2 --- src/libespeak-ng/readclause.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libespeak-ng/readclause.c b/src/libespeak-ng/readclause.c index 68b0157a..a6a0f824 100644 --- a/src/libespeak-ng/readclause.c +++ b/src/libespeak-ng/readclause.c @@ -846,11 +846,10 @@ int ReadClause(Translator *tr, char *buf, short *charix, int *charix_top, int n_ if (iswupper(c1)) { tr->clause_upper_count++; + if ((option_capitals == 2) && (sayas_mode == 0) && !iswupper(cprev)) { - char text_buf[40]; - char text_buf2[30]; - if (LookupSpecial(tr, "_cap", text_buf2) != NULL) { - sprintf(text_buf, "%s", text_buf2); + char text_buf[30]; + if (LookupSpecial(tr, "_cap", text_buf) != NULL) { j = strlen(text_buf); if ((ix + j) < n_buf) { strcpy(&buf[ix], text_buf);