Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
da2a148c
Commit
da2a148c
authored
Aug 04, 2007
by
Rémi Denis-Courmont
Browse files
Fix off-by-one
parent
6d8f4537
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/entry.c
View file @
da2a148c
...
...
@@ -87,7 +87,7 @@ int vlc_module_set (module_t *module, int propid, void *value)
{
unsigned
i
;
for
(
i
=
0
;
module
->
pp_shortcuts
[
i
]
!=
NULL
;
i
++
);
if
(
i
>=
MODULE_SHORTCUT_MAX
)
if
(
i
>=
(
MODULE_SHORTCUT_MAX
-
1
)
)
return
VLC_ENOMEM
;
module
->
pp_shortcuts
[
i
]
=
(
char
*
)
value
;
...
...
Write
Preview
Supports
Markdown
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