code cleanup: remove unnecessary text_buf2

This commit is contained in:
Juho Hiltunen
2021-02-25 17:17:19 +02:00
parent 5d92b336f5
commit d1332d7f35
+3 -4
View File
@@ -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);