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> |
||
---|---|---|
.. | ||
helpers.c | ||
helpers.h | ||
irqbalance-ui.c | ||
irqbalance-ui.h | ||
ui.c | ||
ui.h |