iwlwifi: mvm: use scnprintf() instead of snprintf()
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Apr 2017 07:58:50 +0000 (09:58 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 22 Jun 2017 21:13:00 +0000 (00:13 +0300)
commit40e86a3619a1e84ad73c716c943f65fc38eb1e28
tree9aac2e91f4cd3c325bddf31db5fb01ec011fb384
parenta9c50726ce3279646e2e22314b0917455a3c5e86
iwlwifi: mvm: use scnprintf() instead of snprintf()

It's safer to use scnprintf() here because the buffer might
be too short for the full format strings. In most cases
this isn't true because of external limits on the values.

In one case, this fixes a stack data leak.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c