Re: [PATCH] hamradio: dmascc: avoid -Wformat-overflow warning

2017-07-26 Thread David Miller
From: Arnd Bergmann Date: Wed, 26 Jul 2017 09:55:33 +0200 > gcc warns that the device name might overflow: > > drivers/net/hamradio/dmascc.c: In function 'dmascc_init': > drivers/net/hamradio/dmascc.c:584:22: error: 'sprintf' may write a > terminating nul past the end of the destination [-Werro

[PATCH] hamradio: dmascc: avoid -Wformat-overflow warning

2017-07-26 Thread Arnd Bergmann
gcc warns that the device name might overflow: drivers/net/hamradio/dmascc.c: In function 'dmascc_init': drivers/net/hamradio/dmascc.c:584:22: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=] sprintf(dev->name, "dmascc%i", 2 * n + i); driv