mii-tool: Fix string length
media_list writes into a static string. Worst case length of this string is 125 bytes, but the function only allocates 100 bytes. Use 256 bytes which is long enough for some extensions. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
8e89bc594a
commit
68376f82e8
|
@ -61,7 +61,7 @@ const struct {
|
||||||
|
|
||||||
static const char *media_list(unsigned mask, unsigned mask2, int best)
|
static const char *media_list(unsigned mask, unsigned mask2, int best)
|
||||||
{
|
{
|
||||||
static char buf[100];
|
static char buf[256];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
*buf = '\0';
|
*buf = '\0';
|
||||||
|
|
Loading…
Reference in New Issue