distout (char *drft, char *msgnam, char *backup)
{
int state;
- register unsigned char *dp;
- register char *resent;
+ char *dp, *resent;
char name[NAMESZ], buffer[BUFSIZ];
register FILE *ifp, *ofp;
m_getfld_state_t gstate = 0;
case BODY:
for (dp = buffer; *dp; dp++)
- if (!isspace (*dp)) {
+ if (!isspace ((unsigned char) *dp)) {
advise (NULL, BADTXT, "draft");
goto leave_bad;
}
cp = m_mktemp2(NULL, "dist", &hdrfd, NULL);
if (cp == NULL) {
- adios("distsbr", "unable to create temporary file");
+ adios(NULL, "unable to create temporary file in %s", get_temp_dir());
}
- fchmod(hdrfd, 0600);
strncpy(tmpfil, cp, sizeof(tmpfil));
if ((out = dup (hdrfd)) == NOTOK
|| (ofp = fdopen (out, "w")) == NULL)
cp = m_mktemp2(NULL, "dist", &txtfd, NULL);
if (cp == NULL) {
- adios("distsbr", "unable to create temporary file");
+ adios(NULL, "unable to create temporary file in %s",
+ get_temp_dir());
}
fchmod(txtfd, 0600);
strncpy (tmpfil, cp, sizeof(tmpfil));