projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use execprog() instead of system() ... partly transition
[mmh]
/
uip
/
spost.c
diff --git
a/uip/spost.c
b/uip/spost.c
index
7a59d59
..
b65e4c4
100644
(file)
--- a/
uip/spost.c
+++ b/
uip/spost.c
@@
-628,7
+628,6
@@
static void
process_bccs(char *origmsg)
{
char *bccdraft = NULL;
process_bccs(char *origmsg)
{
char *bccdraft = NULL;
- char buf[BUFSIZ];
struct mailname *mp = NULL;
FILE *out = NULL;
struct mailname *mp = NULL;
FILE *out = NULL;
@@
-640,8
+639,7
@@
process_bccs(char *origmsg)
fprintf(out, "------------\n");
fclose(out);
fprintf(out, "------------\n");
fclose(out);
- snprintf(buf, sizeof buf, "send %s", bccdraft);
- if (system(buf) != 0) {
+ if (execprogl("send", "send", bccdraft, (char *)NULL) != 0) {
admonish(invo_name, "Problems to send Bcc to %s",
mp->m_text);
unlink(bccdraft);
admonish(invo_name, "Problems to send Bcc to %s",
mp->m_text);
unlink(bccdraft);