projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* man/mhbuild.man: wrapped one appearance of "Content-Disposition"
[mmh]
/
uip
/
replsbr.c
diff --git
a/uip/replsbr.c
b/uip/replsbr.c
index
d92fade
..
b8e8e92
100644
(file)
--- a/
uip/replsbr.c
+++ b/
uip/replsbr.c
@@
-162,7
+162,9
@@
replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen,
if (!strcasecmp(name, cptr->c_name)) {
char_read += msg_count;
if (! cptr->c_text) {
if (!strcasecmp(name, cptr->c_name)) {
char_read += msg_count;
if (! cptr->c_text) {
- cptr->c_text = tmpbuf;
+ i = strlen(cptr->c_text = tmpbuf) - 1;
+ if (tmpbuf[i] == '\n')
+ tmpbuf[i] = '\0';
*--savecomp = cptr;
tmpbuf = *nxtbuf++;
} else {
*--savecomp = cptr;
tmpbuf = *nxtbuf++;
} else {
@@
-291,11
+293,9
@@
static unsigned int bufsiz=0; /* current size of buf */
int i = dst - buf;\
int n = last_dst - buf;\
bufsiz += ((dst + len - bufend) / BUFINCR + 1) * BUFINCR;\
int i = dst - buf;\
int n = last_dst - buf;\
bufsiz += ((dst + len - bufend) / BUFINCR + 1) * BUFINCR;\
- buf = realloc (buf, bufsiz);\
+ buf = mh_xrealloc (buf, bufsiz);\
dst = buf + i;\
last_dst = buf + n;\
dst = buf + i;\
last_dst = buf + n;\
- if (! buf)\
- adios (NULL, "formataddr: couldn't get buffer space");\
bufend = buf + bufsiz;\
}
bufend = buf + bufsiz;\
}