Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
7b7d26d8
Commit
7b7d26d8
authored
Mar 28, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Growl: fix bad memset.
parent
ed6f4ee4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/misc/notify/growl_udp.c
modules/misc/notify/growl_udp.c
+2
-4
No files found.
modules/misc/notify/growl_udp.c
View file @
7b7d26d8
...
...
@@ -180,7 +180,7 @@ static int ItemChange( vlc_object_t *p_this, const char *psz_var,
*****************************************************************************/
static
int
RegisterToGrowl
(
vlc_object_t
*
p_this
)
{
uint8_t
*
psz_encoded
=
malloc
(
100
);
uint8_t
*
psz_encoded
=
calloc
(
100
,
1
);
uint8_t
i_defaults
=
0
;
static
const
char
*
psz_notifications
[]
=
{
"Now Playing"
,
NULL
};
bool
pb_defaults
[]
=
{
true
,
false
};
...
...
@@ -188,7 +188,6 @@ static int RegisterToGrowl( vlc_object_t *p_this )
if
(
psz_encoded
==
NULL
)
return
false
;
memset
(
psz_encoded
,
0
,
sizeof
(
psz_encoded
)
);
psz_encoded
[
i
++
]
=
GROWL_PROTOCOL_VERSION
;
psz_encoded
[
i
++
]
=
GROWL_TYPE_REGISTRATION
;
insertstrlen
(
APPLICATION_NAME
);
...
...
@@ -220,13 +219,12 @@ static int RegisterToGrowl( vlc_object_t *p_this )
static
int
NotifyToGrowl
(
vlc_object_t
*
p_this
,
const
char
*
psz_desc
)
{
const
char
*
psz_type
=
"Now Playing"
,
*
psz_title
=
"Now Playing"
;
uint8_t
*
psz_encoded
=
malloc
(
GROWL_MAX_LENGTH
+
42
);
uint8_t
*
psz_encoded
=
calloc
(
GROWL_MAX_LENGTH
+
42
,
1
);
uint16_t
flags
;
int
i
=
0
;
if
(
psz_encoded
==
NULL
)
return
false
;
memset
(
psz_encoded
,
0
,
sizeof
(
psz_encoded
)
);
psz_encoded
[
i
++
]
=
GROWL_PROTOCOL_VERSION
;
psz_encoded
[
i
++
]
=
GROWL_TYPE_NOTIFICATION
;
flags
=
0
;
...
...
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