aboutsummaryrefslogtreecommitdiffstats
path: root/audio/kdemultimedia2/files
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2000-11-27 10:54:09 +0800
committerkevlo <kevlo@FreeBSD.org>2000-11-27 10:54:09 +0800
commit75792eb4b765849abb79dbb07a33ace24fef910f (patch)
tree00d60b5c917c9f0614a513aa90069e74cf1c3e35 /audio/kdemultimedia2/files
parentab70e07dc321752c852c3f3060de6cbe45deea8c (diff)
downloadfreebsd-ports-gnome-75792eb4b765849abb79dbb07a33ace24fef910f.tar.gz
freebsd-ports-gnome-75792eb4b765849abb79dbb07a33ace24fef910f.tar.zst
freebsd-ports-gnome-75792eb4b765849abb79dbb07a33ace24fef910f.zip
Fix tmpnam() warnings, using KTempfile instead of mkstemp.
Fix kde -HEAD as well: http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdemultimedia/kscd/CDDialog.cpp
Diffstat (limited to 'audio/kdemultimedia2/files')
-rw-r--r--audio/kdemultimedia2/files/patch-CDDialog.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/audio/kdemultimedia2/files/patch-CDDialog.cpp b/audio/kdemultimedia2/files/patch-CDDialog.cpp
new file mode 100644
index 000000000000..3ecedcb68ced
--- /dev/null
+++ b/audio/kdemultimedia2/files/patch-CDDialog.cpp
@@ -0,0 +1,30 @@
+--- kscd/CDDialog.cpp.orig Fri Nov 24 18:13:01 2000
++++ kscd/CDDialog.cpp Mon Nov 27 10:22:44 2000
+@@ -24,6 +24,7 @@
+
+ #include <klocale.h>
+ #include <kdebug.h>
++#include <ktempfile.h>
+
+ #include <stdio.h>
+ #include <math.h>
+@@ -427,8 +428,9 @@
+ dialog->getSelection(submitcat);
+ delete dialog;
+
+- QString tempfile;
+- tempfile = tmpnam(0L);
++ KTempFile tmpFile;
++ tmpFile.setAutoDelete(true); // delete file when we are done.
++ QString tempfile = tmpFile.name();
+
+ save_cddb_entry(tempfile,true);
+
+@@ -515,7 +517,6 @@
+ file.close();
+ // file2.close(); // *****
+
+- unlink(QFile::encodeName(tempfile));
+ kdDebug() << "DONE SENDING\n" << endl;
+ } // upload
+