From 2c2498513a7edd08596b6e2f31fee3d75d4c3e8e Mon Sep 17 00:00:00 2001 From: skimo Date: Sat, 14 Aug 2004 16:07:01 +0000 Subject: [PATCH] repeat workaround in loop --- test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test.c b/test.c index 9a8d14f..b50e1ce 100644 --- a/test.c +++ b/test.c @@ -43,8 +43,11 @@ int main() fgets(s, 128, stdin); /* workaround for apparent bug in older gmps */ *strchr(s, '\n') = '\0'; - while ((*s=='#') || (value_read(ck, s) != 0)) + while ((*s=='#') || (value_read(ck, s) != 0)) { fgets(s, 128, stdin); + /* workaround for apparent bug in older gmps */ + *strchr(s, '\n') = '\0'; + } barvinok_count(A, &cb, 100); if (value_ne(cb, ck)) return -1; -- 2.11.4.GIT