diff options
author | Andrey Slusar <anray@FreeBSD.org> | 2006-02-10 20:57:15 +0000 |
---|---|---|
committer | Andrey Slusar <anray@FreeBSD.org> | 2006-02-10 20:57:15 +0000 |
commit | 1373441e927b5dc25dec52cb566cf06cd2a7c761 (patch) | |
tree | f54b54e83b83e463a0542c6a46dbe6147b5a94b4 /ftp/IglooFTP/files/patch-main.c | |
parent | 10397927f6f4ee01c30e8efa76b69a99a758699d (diff) | |
download | ports-1373441e927b5dc25dec52cb566cf06cd2a7c761.tar.gz ports-1373441e927b5dc25dec52cb566cf06cd2a7c761.zip |
Notes
Diffstat (limited to 'ftp/IglooFTP/files/patch-main.c')
-rw-r--r-- | ftp/IglooFTP/files/patch-main.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/ftp/IglooFTP/files/patch-main.c b/ftp/IglooFTP/files/patch-main.c index dddf22599db0..93172e5900d6 100644 --- a/ftp/IglooFTP/files/patch-main.c +++ b/ftp/IglooFTP/files/patch-main.c @@ -1,5 +1,5 @@ ---- main.c.orig Thu Apr 15 20:05:15 1999 -+++ main.c Mon May 3 13:42:28 1999 +--- main.c.orig Thu Apr 15 19:05:15 1999 ++++ main.c Fri Feb 10 22:43:48 2006 @@ -20,6 +20,9 @@ #include <stdlib.h> #include <unistd.h> @@ -10,14 +10,26 @@ #include "protos.h" -@@ -101,6 +104,10 @@ +@@ -100,7 +103,22 @@ + GtkWidget *hbox; GtkWidget *vbox1; char IS_SPAWNED = FALSE; ++ char *td; register int f; + +#ifdef __FreeBSD__ + fpsetmask(0); +#endif ++ if ((td = getenv("TMPDIR")) != NULL && strlen(td) != 0) { ++ if (td[strlen(td)-1] == '/') ++ strncpy(tmpfile_template, td, strlen(td)-1); ++ else ++ strncpy(tmpfile_template, td, strlen(td)); ++ } else { ++ strcpy(tmpfile_template, "/tmp"); ++ } ++ strncat(tmpfile_template, "/", sizeof(tmpfile_template)); ++ strncat(tmpfile_template, TMPFILE_FILE, sizeof(tmpfile_template)); gtk_set_locale (); gtk_init (&argc, &argv); |