diff options
author | Eric Anholt <eric@anholt.net> | 2017-09-02 21:38:51 -0700 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-09-05 13:44:21 +0200 |
commit | 7f92d00164330af5816e96ad964daf718d8d78c4 (patch) | |
tree | 58ae20622676b188c291cae28b838a185dce3b52 /tests/kms_hdmi_inject.c | |
parent | 925900e66156e943f2418b1c7702bd16d41e348b (diff) |
Use PATH_MAX to fix some sprintf-into-short-buffers warnings.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/kms_hdmi_inject.c')
-rw-r--r-- | tests/kms_hdmi_inject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c index cb916ace..22570a4b 100644 --- a/tests/kms_hdmi_inject.c +++ b/tests/kms_hdmi_inject.c @@ -170,7 +170,7 @@ eld_is_valid(void) continue; while ((snd_hda = readdir(dir))) { - char fpath[128]; + char fpath[PATH_MAX]; if (*snd_hda->d_name == '.' || strstr(snd_hda->d_name, "eld") == 0) |