Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
f69577ad
Commit
f69577ad
authored
May 20, 2016
by
Richard van der Hoff
Browse files
fix range check in olm_*_last_errror
parent
e21d5cb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/olm.cpp
View file @
f69577ad
...
...
@@ -190,7 +190,7 @@ const char * olm_account_last_error(
OlmAccount
*
account
)
{
unsigned
error
=
unsigned
(
from_c
(
account
)
->
last_error
);
if
(
error
<
sizeof
(
ERRORS
))
{
if
(
error
<
(
sizeof
(
ERRORS
)
/
sizeof
(
ERRORS
[
0
]))
)
{
return
ERRORS
[
error
];
}
else
{
return
"UNKNOWN_ERROR"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment