Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
7793bdcb
Commit
7793bdcb
authored
May 10, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplification
parent
b855dc8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
src/misc/messages.c
src/misc/messages.c
+7
-8
No files found.
src/misc/messages.c
View file @
7793bdcb
...
@@ -650,14 +650,13 @@ void msg_StackAdd( const char *psz_message, ... )
...
@@ -650,14 +650,13 @@ void msg_StackAdd( const char *psz_message, ... )
p_ctx
->
psz_message
=
psz_tmp
;
p_ctx
->
psz_message
=
psz_tmp
;
else
else
{
{
char
*
psz_old
=
malloc
(
strlen
(
p_ctx
->
psz_message
)
+
1
);
char
*
psz_new
;
memcpy
(
psz_old
,
p_ctx
->
psz_message
,
strlen
(
p_ctx
->
psz_message
)
+
1
);
if
(
asprintf
(
&
psz_new
,
"%s: %s"
,
psz_tmp
,
p_ctx
->
psz_message
)
==
-
1
)
p_ctx
->
psz_message
=
realloc
(
p_ctx
->
psz_message
,
psz_new
=
NULL
;
strlen
(
p_ctx
->
psz_message
)
+
/* ':', ' ', '0' */
free
(
p_ctx
->
psz_message
);
strlen
(
psz_tmp
)
+
3
);
p_ctx
->
psz_message
=
psz_new
;
sprintf
(
p_ctx
->
psz_message
,
"%s: %s"
,
psz_tmp
,
psz_old
);
free
(
psz_tmp
);
free
(
psz_tmp
);
free
(
psz_old
);
}
}
}
}
...
...
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