irqbalance/ui
Sekhar Nori 8adbe9aacb Fix string truncation issues detected by GCC 8
This fixes string truncation warning generated by GCC of the form:

irqbalance.c:485:2: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
  strncpy(addr.sun_path, socket_name, strlen(socket_name));
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Using source size in strncpy so fix that by using destination size.
For the instance of this issue in irqbalance-ui.c, fix the issue by
eliminating the unneeded temporary buffer.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
2019-02-19 14:04:48 +05:30
..
helpers.c Fix for loop for C99 2017-08-03 18:12:15 +02:00
helpers.h Add helper functions for user interface 2017-01-03 08:48:42 -05:00
irqbalance-ui.c Fix string truncation issues detected by GCC 8 2019-02-19 14:04:48 +05:30
irqbalance-ui.h fix socket path creation 2019-01-14 09:58:52 -05:00
ui.c Fix several memleak problems found by covscan 2018-08-31 00:00:14 +08:00
ui.h Add user interface functionality 2017-01-03 08:48:42 -05:00