mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 09:20:29 +01:00
test: remove a compiler warning
Leftover from a previous iteration of this code - having a static but
unnecessarily large size for dirname results in:
../test/litest.c:1251:38: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
snprintf(dest, sizeof(dest), "%s/%s", dirname, filename);
^
../test/litest.c:1251:3: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
snprintf(dest, sizeof(dest), "%s/%s", dirname, filename);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
17c4609645
commit
4de756766c
1 changed files with 1 additions and 1 deletions
|
|
@ -1229,7 +1229,7 @@ litest_install_quirks(struct list *created_files_list)
|
|||
{
|
||||
struct litest_test_device **dev = devices;
|
||||
struct created_file *file;
|
||||
char dirname[PATH_MAX] = "/run/litest-XXXXXX";
|
||||
char dirname[] = "/run/litest-XXXXXX";
|
||||
char **quirks, **q;
|
||||
|
||||
litest_assert_notnull(mkdtemp(dirname));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue