freebsd-ports/irc/unreal/files/patch-url.c
Pav Lucistnik bf23aa58d9 - Update to 3.2.3
PR:		ports/79429
Submitted by:	Gerrit Beine <tux@pinguru.net> (maintainer)
2005-04-11 18:56:40 +00:00

20 lines
764 B
C

--- src/url.c Sat Jul 3 21:04:31 2004
+++ src/url.c Mon Feb 7 04:31:06 2005
@@ -141,7 +141,7 @@
CURLcode res;
char *file = url_getfilename(url);
char *filename = unreal_getfilename(file);
- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf");
+ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", filename ? filename : "download.conf");
FILE *fd;
@@ -236,7 +236,7 @@
{
char *file = url_getfilename(url);
char *filename = unreal_getfilename(file);
- char *tmp = unreal_mktemp("tmp", filename ? filename : "download.conf");
+ char *tmp = unreal_mktemp("%%RUNDIR%%/tmp", filename ? filename : "download.conf");
FileHandle *handle = malloc(sizeof(FileHandle));
handle->fd = fopen(tmp, "wb");
if (!handle->fd)