1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/japanese/mh/files/patch-ao
Motoyuki Konno 3a7c9e3d91 Fix some problems.
o  Y2K problem.
  o  repl coredump problem.

Submitted by:	mh-plus project (japanese/mh developper)
2000-03-11 00:47:03 +00:00

19 lines
619 B
Plaintext

--- uip/replsbr.c.orig Fri Sep 10 13:51:41 1999
+++ uip/replsbr.c Wed Jan 12 12:04:01 2000
@@ -215,11 +215,9 @@
finished:
/* drop ending newline */
for (i = 0; i < sizeof(wantcomp)/sizeof(wantcomp[0]); i++)
- if ((cptr = wantcomp[i]) && cptr->c_text)
- do {
- if ((cp = rindex(cptr->c_text, '\n')) && !cp[1])
- *cp = 0;
- } while (cptr = cptr->c_next);
+ for (cptr = wantcomp[i]; cptr; cptr = cptr->c_next)
+ if (cptr->c_text && (cp = rindex(cptr->c_text, '\n')) && !cp[1])
+ *cp = 0;
/* if there's a "subject" component, strip any "re:"s off it */
FINDCOMP (cptr, "subject")