aboutsummaryrefslogtreecommitdiffstats
path: root/testing/usbip-utils/strnlen-uclibc.patch
blob: d670ed69cdf5853973c9b74c7ce565e22a00b51e (plain)
1
2
3
4
5
6
7
8
9
@@ -35,7 +35,7 @@
 	struct sysfs_attribute *match_busid_attr;
 	int rc, ret = 0;
 
-	if (strnlen(busid, SYSFS_BUS_ID_SIZE) > SYSFS_BUS_ID_SIZE - 1) {
+	if (strlen(busid) > SYSFS_BUS_ID_SIZE - 1) {
 		dbg("busid is too long");
 		return -1;
 	}