Commit: 332695078487a91376d8dd5ab9f8121118ab63b7
Parent: 8afe1baa7dd5e864a1d1eff2f6c793dba2a3acfb
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2018-05-28 11:22:48
Tree: f501b79570de59baea757f1007e19b6e04a5a651

input: Fix compiler error with GCC 8.0 This fixes the following error: profiles/input/device.c: In function ‘hidp_add_connection’: profiles/input/device.c:677:47: error: ‘%s’ directive output may be truncated writing up to 127 bytes into a region of size between 0 and 127 [-Werror=format-truncation=] snprintf(req->name, sizeof(req->name), "%s %s", ^~ pname, sdesc); ~~~~~ profiles/input/device.c:677:4: note: ‘snprintf’ output between 2 and 256 bytes into a destination of size 128 snprintf(req->name, sizeof(req->name), "%s %s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pname, sdesc);

Diffstat

M profiles/input/device.c | 4 ++- -

1 files changed, 2 insertions(+), 2 deletions(-)

View Full Diff | Patch