aboutsummaryrefslogtreecommitdiff
path: root/src/pickle_encoding.c
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-10-24 10:06:06 +0100
committerRichard van der Hoff <richard@matrix.org>2016-10-24 10:06:06 +0100
commita7310c5821513d5c5b0609ec506dad1ae51603d3 (patch)
tree92b6d8031b53d3883e63ca39589c186909ba10f5 /src/pickle_encoding.c
parentd1a535861d02f5a5e049eb3654c8adf1d316bac8 (diff)
Return the base64-encoded length of pickles
make olm_pickle_* return the lengths of the base64-encoded pickles, rather than the raw pickle. (From the application's POV, the format of the pickle is opaque: it doesn't even know that it is base64-encoded. So returning the length of the raw pickle is particularly unhelpful.)
Diffstat (limited to 'src/pickle_encoding.c')
-rw-r--r--src/pickle_encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pickle_encoding.c b/src/pickle_encoding.c
index 5d5f8d7..a56e9e3 100644
--- a/src/pickle_encoding.c
+++ b/src/pickle_encoding.c
@@ -60,7 +60,7 @@ size_t _olm_enc_output(
raw_output, length
);
_olm_encode_base64(raw_output, length, output);
- return raw_length;
+ return base64_length;
}