From 482ee1da05189252c3dee49514506e1d2271a2c0 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 2 Jul 2022 02:43:23 +0200 Subject: [PATCH] Add missing check for EOF --- src/libespeak-ng/readclause.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libespeak-ng/readclause.c b/src/libespeak-ng/readclause.c index 902eecb7..c126f4f4 100644 --- a/src/libespeak-ng/readclause.c +++ b/src/libespeak-ng/readclause.c @@ -680,7 +680,8 @@ int ReadClause(Translator *tr, char *buf, short *charix, int *charix_top, int n_ option_punctuation = 2; } } - c2 = GetC(); + if (!Eof()) + c2 = GetC(); continue; } }