aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2011-01-17 09:38:25 +0100
committerIngela Anderton Andin <[email protected]>2011-01-17 09:38:25 +0100
commit7bc25db7f9a70190a661b2a97734900893d33169 (patch)
tree9a7fd46c37b708a049f5338da71a609acf24704e /lib/stdlib/src
parent05f8664012999f97a80593acce6d3d79793b0634 (diff)
parent10c9b3f42e8c2be2d3cdd4f729c1901a79ead79c (diff)
downloadotp-7bc25db7f9a70190a661b2a97734900893d33169.tar.gz
otp-7bc25db7f9a70190a661b2a97734900893d33169.tar.bz2
otp-7bc25db7f9a70190a661b2a97734900893d33169.zip
Merge branch 'ia/bas64-uses-dprecated-size' into dev
* ia/bas64-uses-dprecated-size: Removed use of deprecated function size
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/base64.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/src/base64.erl b/lib/stdlib/src/base64.erl
index 69d864051c..a14a72ac6d 100644
--- a/lib/stdlib/src/base64.erl
+++ b/lib/stdlib/src/base64.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2007-2009. All Rights Reserved.
+%% Copyright Ericsson AB 2007-2011. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -217,12 +217,12 @@ mime_decode_binary(Result0, <<C:8,T/bits>>) ->
Result0;
4 when Eq ->
%% enforce at least one more '=' only ignoring illegals and spacing
- Split = size(Result0),
+ Split = byte_size(Result0) - 1,
<<Result:Split/bytes,_:4>> = Result0,
Result;
2 ->
%% remove 2 bits
- Split = size(Result0),
+ Split = byte_size(Result0) - 1,
<<Result:Split/bytes,_:2>> = Result0,
Result
end;