mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
input: touchscreen: nt36xxx: Fix -Wfortify-source
../drivers/input/touchscreen/nt36xxx/nt36xxx_mp_ctrlram.c:1096:3: warning: 'snprintf' size argument is too large; destination buffer has size 32, but size argument is 4096 [-Wfortify-source]
1096 | snprintf(mpcriteria, PAGE_SIZE, "novatek-mp-criteria-%04X", ts->nvt_pid);
| ^
1 warning generated.
Change-Id: I84e8c8d932ad1a26b52b020990435f8567e8c282
Signed-off-by: Alexander Winkowski <dereference23@outlook.com>
This commit is contained in:
parent
d6254684dc
commit
4e8fdc63e9
1 changed files with 1 additions and 1 deletions
|
|
@ -1093,7 +1093,7 @@ static int32_t nvt_selftest_open(struct inode *inode, struct file *file)
|
|||
* Ex. nvt_pid = 500A
|
||||
* mpcriteria = "novatek-mp-criteria-500A"
|
||||
*/
|
||||
snprintf(mpcriteria, PAGE_SIZE, "novatek-mp-criteria-%04X", ts->nvt_pid);
|
||||
snprintf(mpcriteria, sizeof(mpcriteria), "novatek-mp-criteria-%04X", ts->nvt_pid);
|
||||
|
||||
if (nvt_mp_parse_dt(np, mpcriteria)) {
|
||||
mutex_unlock(&ts->lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue