]> diplodocus.org Git - nmh/blobdiff - sbr/vfgets.c
uip/mhparse.c: Fix body starting a byte too soon when no blank line.
[nmh] / sbr / vfgets.c
index 3a376e10d6614fa3c1274359d5a78dd8dc7562a0..36f71379516ffe56a334053644e0cfb3257887d3 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * vfgets.c -- virtual fgets
+/* vfgets.c -- virtual fgets
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -40,9 +38,8 @@ wrong_guess:
            if (*dp == '\n') {
                *bp = pp;
                return 0;
            if (*dp == '\n') {
                *bp = pp;
                return 0;
-           } else {
-               cp = ++dp;
            }
            }
+            cp = ++dp;
        } else {
            for (fp = dp - 1, toggle = 0; fp >= cp; fp--) {
                if (*fp != QUOTE)
        } else {
            for (fp = dp - 1, toggle = 0; fp >= cp; fp--) {
                if (*fp != QUOTE)