openbsd-ports/x11/vlc/patches/patch-modules_access_vcdx_access_c
mbalmer a4986d448c Security fix for vlc (see http://www.videolan.org/sa0701.html). NB, we never
had the extensions enabled that are affected by the problem.

from brad
2007-01-04 11:29:59 +00:00

44 lines
1.5 KiB
Plaintext

$OpenBSD: patch-modules_access_vcdx_access_c,v 1.1 2007/01/04 11:30:00 mbalmer Exp $
--- modules/access/vcdx/access.c.orig Thu Jan 4 00:54:36 2007
+++ modules/access/vcdx/access.c Thu Jan 4 00:56:28 2007
@@ -92,17 +92,17 @@ cdio_log_handler (cdio_log_level_t level
case CDIO_LOG_DEBUG:
case CDIO_LOG_INFO:
if (p_vcdplayer->i_debug & INPUT_DBG_CDIO)
- msg_Dbg( p_vcd_access, message);
+ msg_Dbg( p_vcd_access, "%s", message);
break;
case CDIO_LOG_WARN:
- msg_Warn( p_vcd_access, message);
+ msg_Warn( p_vcd_access, "%s", message);
break;
case CDIO_LOG_ERROR:
case CDIO_LOG_ASSERT:
- msg_Err( p_vcd_access, message);
+ msg_Err( p_vcd_access, "%s", message);
break;
default:
- msg_Warn( p_vcd_access, message,
+ msg_Warn( p_vcd_access, "%s\n%s %d", message,
_("The above message had unknown log level"),
level);
}
@@ -118,14 +118,14 @@ vcd_log_handler (vcd_log_level_t level,
case VCD_LOG_DEBUG:
case VCD_LOG_INFO:
if (p_vcdplayer->i_debug & INPUT_DBG_VCDINFO)
- msg_Dbg( p_vcd_access, message);
+ msg_Dbg( p_vcd_access, "%s", message);
break;
case VCD_LOG_WARN:
- msg_Warn( p_vcd_access, message);
+ msg_Warn( p_vcd_access, "%s", message);
break;
case VCD_LOG_ERROR:
case VCD_LOG_ASSERT:
- msg_Err( p_vcd_access, message);
+ msg_Err( p_vcd_access, "%s", message);
break;
default:
msg_Warn( p_vcd_access, "%s\n%s %d", message,