mkoctfile-infinite-loop
authorDebian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
Mon, 1 Dec 2014 20:25:52 +0000 (20:25 +0000)
committerSébastien Villemot <sebastien@debian.org>
Mon, 1 Dec 2014 20:25:52 +0000 (20:25 +0000)
Gbp-Pq: Name mkoctfile-infinite-loop.patch

src/mkoctfile.in.cc

index 221d292e08bbbc7e7eb7744f803ed6d600bb48f5..df65b9b7d7be28f545e59ef400c6de493857b262 100644 (file)
@@ -70,11 +70,11 @@ get_line (FILE *fp)
 {
   static std::vector<char> buf (100);
   unsigned int idx = 0;
-  char c;
+  int c;
 
   while (true)
     {
-      c = static_cast<char> (gnulib::fgetc (fp));
+      c = gnulib::fgetc (fp);
       if (c == '\n' || c == EOF)
         break;
       if (buf.size () <= idx)