input: touchscreen: nt36xxx: fix snprintf warning
authorKhusika Dhamar Gusti <mail@khusika.com>
Fri, 13 Sep 2019 16:05:32 +0000 (23:05 +0700)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:02 +0000 (20:24 +0300)
commit5836e268026bf66755a8a1315cc7e779b4a36aba
tree12fac46a2857bac3a1b0e45629ace948feaac123
parent61be78489669907a3026be7e7c98f652dfe8fecc
input: touchscreen: nt36xxx: fix snprintf warning

Fixes the following clang warning:

../drivers/input/touchscreen/nt36xxx/nt36xxx_mp_ctrlram.c:1293:3: error: 'snprintf' size argument is too large; destination buffer has size 32, $
                snprintf(mpcriteria, PAGE_SIZE, "novatek-mp-criteria-%04X", ts->nvt_pid);
                ^
1 error generated.

Change-Id: Ieb3331a226cb6e183aaac2f22e7e8dccf27af7fc
Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
drivers/input/touchscreen/nt36xxx/nt36xxx_mp_ctrlram.c