aboutsummaryrefslogtreecommitdiffstats
path: root/tempfile.h
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-01-26 15:41:16 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-01-26 15:41:16 +0000
commit036906465c899cf281e83b6b607ea8c6399c54cd (patch)
tree923955e81f4a847f5956da5ae4aaada10e7d0c0e /tempfile.h
parenta18bdb19df6816feebe3085cd9d5f000351ed1a8 (diff)
Replace disallowed filename characters to '-'.
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7877 #BACKPORT(1.8, 1.6) svn path=/trunk/; revision=47298
Diffstat (limited to 'tempfile.h')
-rw-r--r--tempfile.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/tempfile.h b/tempfile.h
index 8ae67b2850..a3ec89d6e8 100644
--- a/tempfile.h
+++ b/tempfile.h
@@ -37,18 +37,18 @@ extern "C" {
/**
* Create a tempfile with the given prefix (e.g. "wireshark"). The path
* is created using g_get_tmp_dir and mkstemp.
- *
+ *
* @param namebuf If not NULL, receives the full path of the temp file.
* Must NOT be freed.
* @param pfx A prefix for the temporary file.
* @return The file descriptor of the new tempfile, from mkstemp().
*/
-int create_tempfile(char **namebuf, const char *pfx);
+int create_tempfile(char **namebuf, char *pfx);
/**
* Create a directory with the given prefix (e.g. "wireshark"). The path
* is created using g_get_tmp_dir and mkdtemp.
- *
+ *
* @param namebuf If not NULL, receives the full path of the temp directory.
* Must NOT be freed.
* @param pfx A prefix for the temporary directory.