missing headers.
case FT_NUM:
n = snprintf(cp, ep - cp + 1, "%d", value);
- if (n >= 0)
+ if (n >= 0) {
if (n >= ep - cp) {
cp = ep;
} else
cp += n;
+ }
break;
case FT_NUMF:
cpnumber (&cp, value, fmt->f_width, fmt->f_fill, ep - cp);
*/
#include <h/mh.h>
+#include <h/utils.h>
#include <errno.h>
{
register char *cp;
register struct msgs *mp;
- struct stat st;
static char buffer[BUFSIZ];
if (*isdf == -1 || folder == NULL || *folder == '\0') {
int pushsw = 0, popsw = 0;
char *cp, *dp, *msg = NULL, *argfolder = NULL;
char **ap, **argp, buf[BUFSIZ], **arguments;
- struct stat st;
#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
#include <h/mh.h>
+#include <h/utils.h>
#include <fcntl.h>
#ifdef POP
static void
opnfolds (struct st_fold *folders, int nfolders)
{
- register char *cp;
char nmaildir[BUFSIZ];
register struct st_fold *fp, *ep;
register struct msgs *mp;
- struct stat st;
for (fp = folders, ep = folders + nfolders; fp < ep; fp++) {
chdir (m_maildir (""));