Please sign in to comment.
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 <email@example.com>
- Loading branch information...