vlib: pci: fix non-NULL terminated C-string
Type: fix Change-Id: I6f25d9295b973ab7133071b6dc325ecd86386898 Signed-off-by: Benoît Ganne <bganne@cisco.com> (cherry picked from commit 0b91bd6c52460c3bff9ae7b1c0405d258a016c32)
This commit is contained in:
parent
48f8eb3dc3
commit
b34331e8ab
@ -738,8 +738,8 @@ add_device_uio (vlib_main_t * vm, linux_pci_device_t * p,
|
||||
goto error;
|
||||
}
|
||||
|
||||
s = format (0, "%s/%U/uio", sysfs_pci_dev_path,
|
||||
format_vlib_pci_addr, &di->addr);
|
||||
s = format (0, "%s/%U/uio%c", sysfs_pci_dev_path,
|
||||
format_vlib_pci_addr, &di->addr, 0);
|
||||
foreach_directory_file ((char *) s, scan_uio_dir, p, /* scan_dirs */
|
||||
1);
|
||||
vec_reset_length (s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user