#include <h/mime.h>
#include <h/mhparse.h>
#include <h/utils.h>
+#include <stdarg.h>
+#include <sys/stat.h>
extern int debugsw;
for (ap = parts; *ap; ap++) {
len = strlen(*ap);
- if (!strncmp(*ap, ct->c_partno, len) &&
+ if (strncmp(*ap, ct->c_partno, len)==0 &&
(!ct->c_partno[len] ||
ct->c_partno[len] == '.' ))
return 1;
ep = concat("Create directory \"", file, "\"? ", NULL);
answer = getanswer(ep);
- free(ep);
+ mh_free0(&ep);
if (!answer)
goto losing_directory;
if (errs) {
fflush(stdout);
fprintf(stderr, "%s", errs);
- free(errs);
- errs = NULL;
+ mh_free0(&errs);
}
}