Update capture.c
This commit is contained in:
parent
a4b17a2d14
commit
25fe6b0749
1 changed files with 0 additions and 6 deletions
|
|
@ -480,12 +480,6 @@ int cap_register_multiple(FAR const char *devpath,
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t devlen = strlen(devpath);
|
|
||||||
if (devlen == 0 || devlen > sizeof(fullpath) - 2)
|
|
||||||
{
|
|
||||||
return -ENAMETOOLONG;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (int i = 0; i < n; i++)
|
for (int i = 0; i < n; i++)
|
||||||
{
|
{
|
||||||
int written = snprintf(fullpath, sizeof(fullpath), "%s%d", devpath, i);
|
int written = snprintf(fullpath, sizeof(fullpath), "%s%d", devpath, i);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue