X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/43a65e9777214029046fe7a1427493e6e503a717..f570fea8a0911b284017066471be12d2fe9bd3b6:/uip/dropsbr.c diff --git a/uip/dropsbr.c b/uip/dropsbr.c index 7dc0a87b..2cf5b598 100644 --- a/uip/dropsbr.c +++ b/uip/dropsbr.c @@ -306,6 +306,10 @@ mbx_copy (char *mailbox, int mbx_style, int md, int fd, } while ((i = read (fd, buffer, sizeof(buffer))) > 0) { + /* valgrind noticed that stringdex depends on null + termination. */ + buffer[i] = '\0'; + for (j = 0; (j = stringdex (mmdlm1, buffer)) >= 0; buffer[j]++)