Commit 339c7200 authored by Jiri Popelka's avatar Jiri Popelka Committed by Bernd Eckenfels

mii-tool.c: increase buf size in show_basic_mii()

buf concatenates what's returned from media_list()
plus couple of other strings which seems to easily
overrun the 100 byte fixed-size, therefore double it.
parent 7e91281f
...@@ -230,7 +230,7 @@ static const char *media_list(unsigned mask, unsigned mask2, int best) ...@@ -230,7 +230,7 @@ static const char *media_list(unsigned mask, unsigned mask2, int best)
int show_basic_mii(int sock, int phy_id) int show_basic_mii(int sock, int phy_id)
{ {
char buf[100]; char buf[200];
int i, mii_val[32]; int i, mii_val[32];
unsigned bmcr, bmsr, advert, lkpar, bmcr2, lpa2; unsigned bmcr, bmsr, advert, lkpar, bmcr2, lpa2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment