diff options
author | Hans Bolinder <[email protected]> | 2017-06-28 16:49:26 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-09-15 17:07:48 +0200 |
commit | 15abdca7ef9c6fb7812f13829346db59173e5681 (patch) | |
tree | ac3b875273b6f26201b828c54d740295a9ca5651 /lib/sasl/src/rb.erl | |
parent | 4f3289a5d3b3ddd08d6e8a42909634b38d7d2a5a (diff) | |
download | otp-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.erl | 6 |
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; |