#include <limits.h>
#include <libcitadel.h>
#include "citadel.h"
-#ifndef HAVE_SNPRINTF
-#include "snprintf.h"
-#endif
#include "citadel_dirs.h"
int serv_sock;
if (debug) fprintf(stderr, "citmail: error parsing hostname\n");
cleanup(3);
}
- *ep = '\0';
+ else
+ *ep = '\0';
+
strncpy(hostname, sp, sizeof hostname);
snprintf(fromline, sizeof fromline, "From: %s@%s", pw->pw_name, hostname);