From: Ralph Corderoy Date: Sat, 12 Nov 2016 15:35:35 +0000 (+0000) Subject: Revert "m_getfld: Shorten fdelimlen by one; it was too long." X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5fc11475068835552cfe83fe24027b5dfd4b24ae Revert "m_getfld: Shorten fdelimlen by one; it was too long." This reverts commit 36a12f6a1a5a57799e48b23fd5ae47fe2351be68. I think it was right after all, but currently trying to get a test to fail with the faulty change. --- diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index c0605b4d..70dbd5ca 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -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;