home · contact · privacy
Fix textfile_width() line length check position.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 31 Mar 2014 02:24:43 +0000 (04:24 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 31 Mar 2014 02:24:43 +0000 (04:24 +0200)
src/common/readwrite.c

index 3dcd2a2d90ec307d86a6c23fe99a36048725e143..c2c970d292cb9579d5e6fddc64eb733ac3524246 100644 (file)
@@ -108,8 +108,8 @@ extern uint32_t textfile_width(FILE * file)
         {
             break;
         }
-        exit_trouble(UINT32_MAX == c_count, f_name, "too large text file line");
         c_count++;
+        exit_trouble(UINT32_MAX == c_count, f_name, "too large text file line");
         if ('\n' == c)
         {
             if (c_count > linemax)