Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > 4b9ab42b838e54e56f4c32beff2a8359 > files > 2

anthy-9100h-25.20110409.16.mga8.src.rpm

2015-03-10  NOKUBI Takatsugu  <knok @ daionet.gr.jp>

       * src-worddic/record.c (read_1_token):
       check EOF without last return code to prevent infinite loop.
       https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777689

--- a/src-worddic/record.c
+++ b/src-worddic/record.c
@@ -1043,7 +1043,7 @@
   if (s) {
     s[len] = '\0';
   }
-  *eol = (c == '\n');
+  *eol = (c == '\n' || c == EOF);
   return s;
 }