aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/filename.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-28 13:05:53 +0200
committerSiri Hansen <[email protected]>2017-07-06 17:53:22 +0200
commit792450913beef0b2eec3e3b0a4ebad14563ecadb (patch)
tree95080fad454bda3ceda26739d775765d62a7aea4 /lib/stdlib/src/filename.erl
parente2b9eb8735416ded58fbcdfbe11a90b7885f8a31 (diff)
downloadotp-792450913beef0b2eec3e3b0a4ebad14563ecadb.tar.gz
otp-792450913beef0b2eec3e3b0a4ebad14563ecadb.tar.bz2
otp-792450913beef0b2eec3e3b0a4ebad14563ecadb.zip
stdlib: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/stdlib/src/filename.erl')
-rw-r--r--lib/stdlib/src/filename.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stdlib/src/filename.erl b/lib/stdlib/src/filename.erl
index 9bf4290916..63cfeae57b 100644
--- a/lib/stdlib/src/filename.erl
+++ b/lib/stdlib/src/filename.erl
@@ -1036,10 +1036,10 @@ basedir_linux(Type) ->
user_log -> getenv("XDG_CACHE_HOME", ?basedir_linux_user_log, true);
site_data ->
Base = getenv("XDG_DATA_DIRS",?basedir_linux_site_data,false),
- string:tokens(Base,":");
+ string:lexemes(Base, ":");
site_config ->
Base = getenv("XDG_CONFIG_DIRS",?basedir_linux_site_config,false),
- string:tokens(Base,":")
+ string:lexemes(Base, ":")
end.
-define(basedir_darwin_user_data, "Library/Application Support").