[MPlayer-cvslog] r36602 - trunk/libvo/vo_bl.c
reimar
subversion at mplayerhq.hu
Sat Jan 18 14:14:54 CET 2014
Author: reimar
Date: Sat Jan 18 14:14:54 2014
New Revision: 36602
Log:
vo_bl: Use strcspn
Modified:
trunk/libvo/vo_bl.c
Modified: trunk/libvo/vo_bl.c
==============================================================================
--- trunk/libvo/vo_bl.c Sat Jan 18 14:07:40 2014 (r36601)
+++ trunk/libvo/vo_bl.c Sat Jan 18 14:14:54 2014 (r36602)
@@ -399,7 +399,7 @@ static int preinit(const char *arg) {
return 1;
}
p += 5;
- while (*q != ',' && *q != '\0') q++;
+ q += strcspn(q, ",");
if (*q == '\0') end = 1;
*q = '\0';
bl_files[no_bl_files].name = p;
@@ -412,12 +412,12 @@ static int preinit(const char *arg) {
return 1;
}
p += 5;
- while (*q != ',' && *q != '\0' && *q != ':') q++;
+ q += strcspn(q, ",:");
if (*q == ':') {
*q++ = '\0';
bl_hosts[no_bl_hosts].name = p;
bl_hosts[no_bl_hosts].port = atoi(q);
- while (*q != ',' && *q != '\0') q++;
+ q += strcspn(q, ",");
if (*q == '\0') end = 1;
} else {
/* use default port */
More information about the MPlayer-cvslog
mailing list