aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/erl_boot_server.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-28 16:11:34 +0200
committerSiri Hansen <[email protected]>2017-07-06 17:53:23 +0200
commitabb8e79663d0527f2987d1d7e914c65117b396a9 (patch)
treefa896b44cc0e208afa6d7c7ee9a16d8f2c835095 /lib/kernel/src/erl_boot_server.erl
parente2f42f4ce7d2cb2a9eaa1cfeb1b6b69b061704f7 (diff)
downloadotp-abb8e79663d0527f2987d1d7e914c65117b396a9.tar.gz
otp-abb8e79663d0527f2987d1d7e914c65117b396a9.tar.bz2
otp-abb8e79663d0527f2987d1d7e914c65117b396a9.zip
kernel: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/kernel/src/erl_boot_server.erl')
-rw-r--r--lib/kernel/src/erl_boot_server.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/erl_boot_server.erl b/lib/kernel/src/erl_boot_server.erl
index ac81cc9689..2a38266579 100644
--- a/lib/kernel/src/erl_boot_server.erl
+++ b/lib/kernel/src/erl_boot_server.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1996-2016. All Rights Reserved.
+%% Copyright Ericsson AB 1996-2017. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -253,9 +253,9 @@ handle_info({udp, U, IP, Port, Data}, S0) ->
"~w is not a valid address ** ~n", [IP]),
{noreply,S0};
{true,_,_} ->
- case catch string:substr(Data, 1, length(?EBOOT_REQUEST)) of
+ case catch string:slice(Data, 0, length(?EBOOT_REQUEST)) of
?EBOOT_REQUEST ->
- Vsn = string:substr(Data, length(?EBOOT_REQUEST)+1, length(Data)),
+ Vsn = string:slice(Data, length(?EBOOT_REQUEST), length(Data)),
error_logger:error_msg("** Illegal boot server connection attempt: "
"client version is ~s ** ~n", [Vsn]);
_ ->