Re: [PATCH] selftests: ir: fix warning: ‘%s’ directive output may be truncated

2019-02-04 Thread Sean Young
On Thu, Jan 31, 2019 at 12:43:12PM -0700, Shuah Khan wrote: > Fix the following warning by sizing the buffer to max. of sysfs > path max. size + d_name max. size. > > gcc -Wall -O2 -I../../../include/uapi ir_loopback.c -o > ../tools/testing/selftests/ir/ir_loopback > ir_loopback.c: In function ‘

[PATCH] selftests: ir: fix warning: ‘%s’ directive output may be truncated

2019-01-31 Thread Shuah Khan
Fix the following warning by sizing the buffer to max. of sysfs path max. size + d_name max. size. gcc -Wall -O2 -I../../../include/uapi ir_loopback.c -o ../tools/testing/selftests/ir/ir_loopback ir_loopback.c: In function ‘lirc_open’: ir_loopback.c:71:37: warning: ‘%s’ directive output may be t