mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
Replace cupsTempFile() with tmpnam(). cupsTempFile() no longer exists.
PR: 214332
This commit is contained in:
parent
672cf591e9
commit
580eeb805a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425761
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= xpp
|
||||
PORTVERSION= 1.5
|
||||
PORTREVISION= 11
|
||||
PORTREVISION= 12
|
||||
CATEGORIES= print
|
||||
MASTER_SITES= SF/cups/${PORTNAME}/${PORTVERSION}
|
||||
|
||||
|
@ -1,6 +1,32 @@
|
||||
--- xpp.cxx.orig 2004-12-06 11:00:04.000000000 -0800
|
||||
+++ xpp.cxx 2011-12-03 22:11:00.788941301 -0800
|
||||
@@ -2500,7 +2500,7 @@
|
||||
+++ xpp.cxx 2016-11-08 12:49:34.251265000 -0800
|
||||
@@ -30,6 +30,7 @@
|
||||
* Include necessary headers...
|
||||
*/
|
||||
|
||||
+#include <stdio.h>
|
||||
#include "xpp.h"
|
||||
|
||||
#ifndef WIN32
|
||||
@@ -48,7 +49,7 @@
|
||||
* Globals...
|
||||
*/
|
||||
|
||||
-char tempfile[1024]; /* Temporary file for printing from stdin */
|
||||
+static char *tempfile; /* Temporary file for printing from stdin */
|
||||
|
||||
/*
|
||||
* Parse options and send files for printing.
|
||||
@@ -651,7 +652,7 @@
|
||||
#endif
|
||||
#endif // !WIN32
|
||||
|
||||
- temp = fopen(cupsTempFile(tempfile, sizeof(tempfile)), "w");
|
||||
+ temp = fopen((tempfile = tmpnam(NULL)), "w");
|
||||
|
||||
if (temp == NULL)
|
||||
{
|
||||
@@ -2500,7 +2501,7 @@
|
||||
// Redraw the destination menu in the main window
|
||||
|
||||
printerPack->parent()->redraw();
|
||||
@ -9,7 +35,7 @@
|
||||
|
||||
}
|
||||
|
||||
@@ -2674,7 +2674,7 @@
|
||||
@@ -2674,7 +2675,7 @@
|
||||
// Redraw the destination menu in the main window
|
||||
|
||||
printerPack->parent()->redraw();
|
||||
|
Loading…
Reference in New Issue
Block a user