From 853a716610ae1f393e05aceb27b38b9007c39701 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 17 Nov 2017 17:25:33 +0000 Subject: Replace remaining calls of getenv() with fl_getenv(). Note: don't use fl_getenv() in Fl_System_Driver and derived classes. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/file_chooser.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/file_chooser.cxx b/test/file_chooser.cxx index 1a6b0da36..3ac919a24 100644 --- a/test/file_chooser.cxx +++ b/test/file_chooser.cxx @@ -18,13 +18,11 @@ // // Contents: // -// main() - Create a file chooser and wait for a selection to -// be made. +// main() - Create a file chooser and wait for a selection to be made. // close_callback() - Close the main window... // fc_callback() - Handle choices in the file chooser... // pdf_check() - Check for and load the first page of a PDF file. -// ps_check() - Check for and load the first page of a PostScript -// file. +// ps_check() - Check for and load the first page of a PostScript file. // show_callback() - Show the file chooser... // // extra_callback() - circle extra groups (none,group1,check_button); @@ -301,7 +299,7 @@ ps_check(const char *name, // I - Name of file if (memcmp(header, "%!", 2) != 0) return 0; - home = getenv("HOME"); + home = fl_getenv("HOME"); sprintf(preview, "%s/.preview.ppm", home ? home : ""); if (memcmp(header, "%!PS", 4) == 0) { -- cgit v1.2.3