aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2019-11-20 11:57:12 +0200
committerGreg Kroah-Hartman <[email protected]>2019-11-20 14:35:57 +0100
commit21f585480deb4bcf0d92b08879c35d066dfee030 (patch)
tree3033698ae9cceb1197109e6109d964c6e57f71c2 /scripts/gdb/linux/timerlist.py
parent7da8abcf482adcc0d84ebf619f9f841058fccdb1 (diff)
fbtft: Make sure string is NULL terminated
New GCC warns about inappropriate use of strncpy(): drivers/staging/fbtft/fbtft-core.c: In function ‘fbtft_framebuffer_alloc’: drivers/staging/fbtft/fbtft-core.c:665:2: warning: ‘strncpy’ specified bound 16 equals destination size [-Wstringop-truncation] 665 | strncpy(info->fix.id, dev->driver->name, 16); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Later on the copy is being used with the assumption to be NULL terminated. Make sure string is NULL terminated by switching to snprintf(). Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions