]> diplodocus.org Git - nmh/commitdiff
Revert "m_getfld: Shorten fdelimlen by one; it was too long."
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 12 Nov 2016 15:35:35 +0000 (15:35 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 12 Nov 2016 15:35:35 +0000 (15:35 +0000)
This reverts commit 36a12f6a1a5a57799e48b23fd5ae47fe2351be68.

I think it was right after all, but currently trying to get a test to
fail with the faulty change.

sbr/m_getfld.c

index c0605b4..70dbd5c 100644 (file)
@@ -816,7 +816,7 @@ m_unknown(m_getfld_state_t *gstate, FILE *iob)
     *s->fdelim = '\n';
     s->msg_delim = s->fdelim+1;
     s->edelim = s->msg_delim+1;
-    s->fdelimlen = c;
+    s->fdelimlen = c + 1;
     s->edelimlen = c - 1; /* == strlen (delimstr) */
     strcpy (s->msg_delim, delimstr);
     s->delimend = s->msg_delim + s->edelimlen;