summaryrefslogtreecommitdiff
path: root/test/file_chooser.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-10-13 14:58:30 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-10-13 14:58:30 +0000
commit66b1690aa8b5d05f540ded9999c08525cd1eaf7a (patch)
treeccb5a3a743f1e008fd4b217c619ba99faee62612 /test/file_chooser.cxx
parentdb83933f585d156db2ae35d9c5649bb21b4555af (diff)
Replace remaining calls to getenv() with fl_getenv().
... except in driver code that uses Fl_System_Driver::getenv(). Todo: Check if all remaining calls of getenv() in driver code are correct or might use ::getenv() to avoid one calling level for optimization. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12492 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/file_chooser.cxx')
-rw-r--r--test/file_chooser.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx
index f099b8c78..12f43f0c1 100644
--- a/test/file_chooser.cxx
+++ b/test/file_chooser.cxx
@@ -4,6 +4,7 @@
// File chooser test program.
//
// Copyright 1999-2010 by Michael Sweet.
+// Copyright 2011-2017 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -256,7 +257,7 @@ pdf_check(const char *name, // I - Name of file
if (memcmp(header, "%PDF", 4) != 0)
return 0;
- home = getenv("HOME");
+ home = fl_getenv("HOME");
sprintf(preview, "%s/.preview.ppm", home ? home : "");
sprintf(command,