summaryrefslogtreecommitdiff
path: root/mh/mhn.c
diff options
context:
space:
mode:
Diffstat (limited to 'mh/mhn.c')
-rw-r--r--mh/mhn.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mh/mhn.c b/mh/mhn.c
index 30730e312..ee88ff44e 100644
--- a/mh/mhn.c
+++ b/mh/mhn.c
@@ -25,6 +25,8 @@
#include <obstack.h>
const char *program_version = "mhn (" PACKAGE_STRING ")";
+/* TRANSLATORS: Please, preserve the vertical tabulation (^K character)
+ in this message */
static char doc[] = N_("GNU MH mhn\v"
"Options marked with `*' are not yet implemented.\n"
"Use -help to obtain the list of traditional MH options.");
@@ -1747,7 +1749,7 @@ stream_getline (stream_t str, char **buf, size_t *bufsize, size_t *pnum)
}
numread = 0;
while ((rc = stream_sequential_readline (str, *buf + numread,
- *bufsize, &n)) == 0
+ *bufsize - numread, &n)) == 0
&& n > 0)
{
numread += n;
@@ -2429,7 +2431,7 @@ copy_header (message_t msg, stream_t stream)
header_t hdr;
stream_t in;
char *buf = NULL;
- size_t bufsize, n;
+ size_t bufsize = 0, n = 0;
message_get_header (msg, &hdr);
header_get_stream (hdr, &in);

Return to:

Send suggestions and report system problems to the System administrator.