[MPlayer-cvslog] r36596 - trunk/libvo/vo_bl.c
reimar
subversion at mplayerhq.hu
Sat Jan 18 13:47:55 CET 2014
Author: reimar
Date: Sat Jan 18 13:47:54 2014
New Revision: 36596
Log:
vo_bl: Deobfuscate, use strdup.
Modified:
trunk/libvo/vo_bl.c
Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c Sat Jan 18 13:43:38 2014 (r36595)
+++ trunk/libvo/vo_bl.c Sat Jan 18 13:47:54 2014 (r36596)
@@ -350,13 +350,12 @@ static int preinit(const char *arg) {
return 1;
}
- bl_subdevice = malloc(strlen(arg) + 1);
+ bl_subdevice = strdup(arg);
if (!bl_subdevice) {
mp_msg(MSGT_VO, MSGL_ERR, "bl: out of memory error\n");
return 1;
}
p = bl_subdevice;
- strcpy(p, arg);
mp_msg(MSGT_VO, MSGL_V, "bl: preinit called with %s\n", arg);
for (i = 0; i < NO_BLS; i++) {
if (!strncmp(p, bls[i].name, strlen(bls[i].name)))
More information about the MPlayer-cvslog
mailing list