Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slcanpty: silence warning for signed index for the buf array
slcanpty.c: In function ‘pty2can’: slcanpty.c:105:21: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 105 | buf[nbytes] = 0; | ~~~~~~~~~~~~^~~ slcanpty.c:58:21: note: at offset [-2147483647, -1] into destination object ‘buf’ of size 200 58 | static char buf[200]; | ^~~ Signed-off-by: Oliver Hartkopp <[email protected]>
- Loading branch information