summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-08-10 01:39:28 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-08-11 14:43:51 -0400
commit2da2c5854ed759a64f8a9231a7f544b472c3aa6d (patch)
treea7f28c61b95a2a69854c494220f336ec9dfb2316 /drivers/net/wireless
parent2d116b8849474bfce8f8dac5ef671d0d7053c6fc (diff)
downloadop-kernel-dev-2da2c5854ed759a64f8a9231a7f544b472c3aa6d.zip
op-kernel-dev-2da2c5854ed759a64f8a9231a7f544b472c3aa6d.tar.gz
net: wireless: ipw2x00: ipw2200.c: Cleaning up missing null-terminate after strncpy call
Added a guaranteed null-terminate after call to strncpy. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ipw2x00/ipw2200.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c
index c5aa404..389656b 100644
--- a/drivers/net/wireless/ipw2x00/ipw2200.c
+++ b/drivers/net/wireless/ipw2x00/ipw2200.c
@@ -9853,6 +9853,7 @@ static int ipw_wx_get_wireless_mode(struct net_device *dev,
strncpy(extra, "unknown", MAX_WX_STRING);
break;
}
+ extra[MAX_WX_STRING - 1] = '\0';
IPW_DEBUG_WX("PRIV GET MODE: %s\n", extra);
OpenPOWER on IntegriCloud