# HG changeset patch # User reimar # Date 1390049274 0 # Node ID 21d4dd6f5996a242d2cb16efd3c258d6e7422605 # Parent b83593ffdcfb46b15109b73eeaa847beb5618d99 vo_bl: Deobfuscate, use strdup. diff -r b83593ffdcfb -r 21d4dd6f5996 libvo/vo_bl.c --- a/libvo/vo_bl.c Sat Jan 18 12:43:38 2014 +0000 +++ b/libvo/vo_bl.c Sat Jan 18 12:47:54 2014 +0000 @@ -350,13 +350,12 @@ 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)))