[PATCH] Tools: hv: Fix for long file names from readdir

Olaf Hering olaf at aepfle.de
Thu Nov 8 14:19:25 UTC 2012


On Thu, Nov 08, Tomas Hozza wrote:

> kvp_get_if_name and kvp_mac_to_if_name copy strings into statically
> sized buffers which could be too small to store really long names.

> -	char dev_id[256];
> +	char dev_id[512];

Shouldnt that be PATH_MAX or similar?

Olaf



More information about the devel mailing list