diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-04-03 16:08:14 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-04-03 16:08:14 -0700 |
commit | f3424f4c7c7e1aba33d0a117ea90dd5412530f45 (patch) | |
tree | 41864e0763a3d702eafa259fb8f771ddd8b0c016 /gram.y | |
parent | c3e109f0bb814f2a0e3385bdada58a52473397ac (diff) |
Fix -Wformat-truncation warning
planemask.c: In function ‘create_planemask_choice’:
planemask.c:109:43: warning: ‘%d’ directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=]
snprintf(name, sizeof name, "planemask%d",i);
^~
planemask.c:109:33: note: directive argument in the range [0, 2147483647]
snprintf(name, sizeof name, "planemask%d",i);
^~~~~~~~~~~~~
planemask.c:109:5: note: ‘snprintf’ output between 11 and 20 bytes into a destination of size 12
snprintf(name, sizeof name, "planemask%d",i);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'gram.y')
0 files changed, 0 insertions, 0 deletions