aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sasl/src/rb.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2017-06-28 16:49:26 +0200
committerSiri Hansen <[email protected]>2017-09-15 17:07:48 +0200
commit15abdca7ef9c6fb7812f13829346db59173e5681 (patch)
treeac3b875273b6f26201b828c54d740295a9ca5651 /lib/sasl/src/rb.erl
parent4f3289a5d3b3ddd08d6e8a42909634b38d7d2a5a (diff)
downloadotp-15abdca7ef9c6fb7812f13829346db59173e5681.tar.gz
otp-15abdca7ef9c6fb7812f13829346db59173e5681.tar.bz2
otp-15abdca7ef9c6fb7812f13829346db59173e5681.zip
sasl: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/sasl/src/rb.erl')
-rw-r--r--lib/sasl/src/rb.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sasl/src/rb.erl b/lib/sasl/src/rb.erl
index 6595d29a9c..28829132a1 100644
--- a/lib/sasl/src/rb.erl
+++ b/lib/sasl/src/rb.erl
@@ -586,14 +586,14 @@ find_widths([], _Modifier, DescrWidth, DateWidth, Data) ->
{DescrWidth+1, DateWidth+1, lists:reverse(Data)};
find_widths([H|T], Modifier, DescrWidth, DateWidth, Data) ->
DescrTerm = element(3,H),
- Descr = lists:flatten(io_lib:format("~"++Modifier++"w", [DescrTerm])),
- DescrTry = length(Descr),
+ Descr = io_lib:format("~"++Modifier++"w", [DescrTerm]),
+ DescrTry = string:length(Descr),
NewDescrWidth =
if
DescrTry > DescrWidth -> DescrTry;
true -> DescrWidth
end,
- DateTry = length(element(4, H)),
+ DateTry = string:length(element(4, H)),
NewDateWitdh =
if
DateTry > DateWidth -> DateTry;