freebsd-ports/converters/uulib/files/patch-ad
Tim Vanderhoek 3df30cd731 Use safe temp files. I'll try to cook-up a different version of
these to submit back to the author once I digup my autoconf manual
again.  :(
2002-09-02 03:47:53 +00:00

21 lines
804 B
Text

diff -r -u ../../orig/uudeview-0.5.18/uulib/uunconc.c uulib/uunconc.c
--- ../../orig/uudeview-0.5.18/uulib/uunconc.c Tue Apr 2 05:04:52 2002
+++ uulib/uunconc.c Sun Sep 1 21:27:01 2002
@@ -1264,7 +1264,7 @@
else
mode = "wb"; /* otherwise in binary */
- if ((data->binfile = tempnam (NULL, "uu")) == NULL) {
+ if ((data->binfile = _FP_tempnam (NULL, "uu")) == NULL) {
UUMessage (uunconc_id, __LINE__, UUMSG_ERROR,
uustring (S_NO_TEMP_NAME));
return UURET_NOMEM;
@@ -1426,7 +1426,7 @@
*/
if (data->uudet == BH_ENCODED && data->binfile) {
- if ((ntmp = tempnam (NULL, "uu")) == NULL) {
+ if ((ntmp = _FP_tempnam (NULL, "uu")) == NULL) {
UUMessage (uunconc_id, __LINE__, UUMSG_ERROR,
uustring (S_NO_TEMP_NAME));
progress.action = 0;