#include <h/mh.h>
#include <fcntl.h>
#include <h/signals.h>
-#include <signal.h>
#include <setjmp.h>
#include <termios.h>
int doteof = 0, fdi, fdo, i, state;
char *cp, *drft = NULL, *erasep = NULL;
char *killp = NULL, name[NAMESZ], field[BUFSIZ];
- char buffer[BUFSIZ], tmpfil[BUFSIZ];
+ char buffer[BUFSIZ];
char **arguments, **argp;
FILE *in, *out;
- char *tfile = NULL;
+ char *tmpfil;
m_getfld_state_t gstate = 0;
#ifdef LOCALE
if ((in = fopen (drft, "r")) == NULL)
adios (drft, "unable to open");
- tfile = m_mktemp2(NULL, invo_name, NULL, &out);
- if (tfile == NULL) adios("prompter", "unable to create temporary file");
+ tmpfil = m_mktemp2(NULL, invo_name, NULL, &out);
+ if (tmpfil == NULL) adios("prompter", "unable to create temporary file");
chmod (tmpfil, 0600);
- strncpy (tmpfil, tfile, sizeof(tmpfil));
/*
* Are we changing the kill or erase character?