Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!mcvax!enea!luth!luthcad!sow From: sow@luthcad.UUCP Newsgroups: comp.bugs.4bsd Subject: repl in MH-6.4 Message-ID: <661@luthcad.UUCP> Date: Thu, 2-Apr-87 12:07:56 EST Article-I.D.: luthcad.661 Posted: Thu Apr 2 12:07:56 1987 Date-Received: Sun, 5-Apr-87 08:16:39 EST Reply-To: sow@luthcad.UUCP (Sven-Ove Westberg) Distribution: world Organization: University of Lulea, Sweden Lines: 60 Index: .../mh/uip/replsbr.c Description: The repl(1) command, part of MH-6.4, dumps core on a computer which did not accepts nil pointers e.g. Sun. If we don't want the field and it is a long field so we get the state FLDPLUS. Repeat-By: Use repl(1) on a Sun with a very long To list in the message you reply to. Fix: Don't get the rest of the field if we don't want the field. *** uip/replsbr.c.old Thu Apr 2 16:48:09 1987 --- uip/replsbr.c Thu Apr 2 18:51:15 1987 *************** *** 119,125 * buffer as the component temp buffer (buffer switching * saves an extra copy of the component text). */ ! if (cptr = wantcomp[CHASH(name)]) do { if (uleq(name, cptr->c_name)) { char_read += msg_count; --- 119,125 ----- * buffer as the component temp buffer (buffer switching * saves an extra copy of the component text). */ ! if (cptr = wantcomp[CHASH(name)]) { do { if (uleq(name, cptr->c_name)) { char_read += msg_count; *************** *** 146,151 state = m_getfld (state, name, tmpbuf, SBUFSIZ, inb); cptr->c_text = add (tmpbuf, cptr->c_text); char_read += msg_count; } break; --- 146,152 ----- state = m_getfld (state, name, tmpbuf, SBUFSIZ, inb); cptr->c_text = add (tmpbuf, cptr->c_text); char_read += msg_count; + } } break; Sven-Ove Westberg, CAD, University of Lulea, S-951 87 Lulea Tel: +46-920-91677 (work) +46-920-48390 (home) UUCP: sow@luthcad.UUCP or seismo!mcvax!enea!luthcad!sow ARPA: enea!luthcad!sow@seismo.css.gov