From: markus schnalke Date: Wed, 14 Jan 2015 21:24:34 +0000 (+0100) Subject: send: Convert system() to execprog() ... second half X-Git-Tag: mmh-0.2-RC1~72 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=e8ac33e207bd0ac7efa723d32687156a9924c3f8;p=mmh send: Convert system() to execprog() ... second half Now only uip/spost.c has one left. --- diff --git a/uip/send.c b/uip/send.c index 3c2db0e..7e80bc4 100644 --- a/uip/send.c +++ b/uip/send.c @@ -237,7 +237,7 @@ main(int argc, char **argv) static int sendsbr(char **vec, int vecp, char *drft, struct stat *st) { - int status; + int status, dupfd; char buffer[BUFSIZ]; char *original_draft; @@ -295,12 +295,16 @@ sendsbr(char **vec, int vecp, char *drft, struct stat *st) status = sendaux(vec, vecp, drft, st) ? NOTOK : OK; if (status == OK) { /* move original draft to +trash folder */ - snprintf(buffer, sizeof buffer, - "