In file included from /usr/include/stdio.h:862:0,
from /in/ex5.c:1:
In function 'fgets',
inlined from 'main' at /in/ex5.c:178:5:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:260:9: error: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer [-Werror]
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'fgets',
inlined from 'main' at /in/ex5.c:209:9:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:260:9: error: call to '__fgets_chk_warn' declared with attribute warning: fgets called with bigger size than length of destination buffer [-Werror]
return __fgets_chk_warn (__s, __bos (__s), __n, __stream);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors