git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4650afe
)
fix warning
author
Rafaël Carré
<funman@videolan.org>
Sun, 27 Jan 2008 14:26:33 +0000
(14:26 +0000)
committer
Rafaël Carré
<funman@videolan.org>
Sun, 27 Jan 2008 14:26:33 +0000
(14:26 +0000)
src/misc/messages.c
patch
|
blob
|
history
diff --git
a/src/misc/messages.c
b/src/misc/messages.c
index
9fc91a3
..
ea1b146
100644
(file)
--- a/
src/misc/messages.c
+++ b/
src/misc/messages.c
@@
-317,7
+317,8
@@
static void QueueMsg( vlc_object_t *p_this, int i_queue, int i_type,
/* Expand %m to strerror(errno) - only once */
char buf[strlen( psz_format ) + 2001], *ptr;
strcpy( buf, psz_format );
/* Expand %m to strerror(errno) - only once */
char buf[strlen( psz_format ) + 2001], *ptr;
strcpy( buf, psz_format );
- ptr = psz_format = buf;
+ ptr = (char*)buf;
+ psz_format = (const char*) buf;
for( ;; )
{
for( ;; )
{