summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-11-12 18:00:45 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-11-12 18:00:45 +0000
commitf3896460d64f06a6203da05bdcdabf7e133c8f10 (patch)
tree2df682cb9955be34d3d1e120219ec1ae3b8c430c /src
parentcfdc38f760edf69b99aa6e625d522da9eeffbebe (diff)
Replace chdir() with new wrapper fl_chdir().
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12558 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/filename_absolute.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filename_absolute.cxx b/src/filename_absolute.cxx
index 7d96c6cbc..1f1c7ddbe 100644
--- a/src/filename_absolute.cxx
+++ b/src/filename_absolute.cxx
@@ -3,7 +3,7 @@
//
// Filename expansion routines for the Fast Light Tool Kit (FLTK).
//
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-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
@@ -34,7 +34,7 @@ inline int isdirsep(char c) {return c == '/';}
\code
#include <FL/filename.H>
[..]
- chdir("/var/tmp");
+ fl_chdir("/var/tmp");
fl_filename_absolute(out, sizeof(out), "foo.txt"); // out="/var/tmp/foo.txt"
fl_filename_absolute(out, sizeof(out), "./foo.txt"); // out="/var/tmp/foo.txt"
fl_filename_absolute(out, sizeof(out), "../log/messages"); // out="/var/log/messages"
@@ -92,7 +92,7 @@ int Fl_System_Driver::filename_absolute(char *to, int tolen, const char *from) {
\code
#include <FL/filename.H>
[..]
- chdir("/var/tmp/somedir"); // set cwd to /var/tmp/somedir
+ fl_chdir("/var/tmp/somedir"); // set cwd to /var/tmp/somedir
[..]
char out[FL_PATH_MAX];
fl_filename_relative(out, sizeof(out), "/var/tmp/somedir/foo.txt"); // out="foo.txt", return=1