|
Lines 77-99
Link Here
|
| 77 |
if ((tempMail = malloc(len + sizeof("RsXXXXXX"))) == NULL) |
77 |
if ((tempMail = malloc(len + sizeof("RsXXXXXX"))) == NULL) |
| 78 |
panic("Out of memory"); |
78 |
panic("Out of memory"); |
| 79 |
strcpy(tempMail, tmpdir); |
79 |
strcpy(tempMail, tmpdir); |
| 80 |
mktemp(strcat(tempMail, "RsXXXXXX")); |
80 |
mkstemp(strcat(tempMail, "RsXXXXXX")); |
| 81 |
if ((tempResid = malloc(len + sizeof("RqXXXXXX"))) == NULL) |
81 |
if ((tempResid = malloc(len + sizeof("RqXXXXXX"))) == NULL) |
| 82 |
panic("Out of memory"); |
82 |
panic("Out of memory"); |
| 83 |
strcpy(tempResid, tmpdir); |
83 |
strcpy(tempResid, tmpdir); |
| 84 |
mktemp(strcat(tempResid, "RqXXXXXX")); |
84 |
mkstemp(strcat(tempResid, "RqXXXXXX")); |
| 85 |
if ((tempQuit = malloc(len + sizeof("RmXXXXXX"))) == NULL) |
85 |
if ((tempQuit = malloc(len + sizeof("RmXXXXXX"))) == NULL) |
| 86 |
panic("Out of memory"); |
86 |
panic("Out of memory"); |
| 87 |
strcpy(tempQuit, tmpdir); |
87 |
strcpy(tempQuit, tmpdir); |
| 88 |
mktemp(strcat(tempQuit, "RmXXXXXX")); |
88 |
mkstemp(strcat(tempQuit, "RmXXXXXX")); |
| 89 |
if ((tempEdit = malloc(len + sizeof("ReXXXXXX"))) == NULL) |
89 |
if ((tempEdit = malloc(len + sizeof("ReXXXXXX"))) == NULL) |
| 90 |
panic("Out of memory"); |
90 |
panic("Out of memory"); |
| 91 |
strcpy(tempEdit, tmpdir); |
91 |
strcpy(tempEdit, tmpdir); |
| 92 |
mktemp(strcat(tempEdit, "ReXXXXXX")); |
92 |
mkstemp(strcat(tempEdit, "ReXXXXXX")); |
| 93 |
if ((tempMesg = malloc(len + sizeof("RxXXXXXX"))) == NULL) |
93 |
if ((tempMesg = malloc(len + sizeof("RxXXXXXX"))) == NULL) |
| 94 |
panic("Out of memory"); |
94 |
panic("Out of memory"); |
| 95 |
strcpy(tempMesg, tmpdir); |
95 |
strcpy(tempMesg, tmpdir); |
| 96 |
mktemp(strcat(tempMesg, "RxXXXXXX")); |
96 |
mkstemp(strcat(tempMesg, "RxXXXXXX")); |
| 97 |
|
97 |
|
| 98 |
/* |
98 |
/* |
| 99 |
* It's okay to call savestr in here because main will |
99 |
* It's okay to call savestr in here because main will |