ucodev/ubwt

Build error on Windows Cygwin

Closed this issue · 1 comments

make -C src/
make[1]: Entering directory '/home/falso/src/ubwt/src'
cc -Wall -Wextra -Werror -O3   -I../include -c bitops.c
cc -Wall -Wextra -Werror -O3   -I../include -c config.c
config.c: In function ‘config_init’:
config.c:166:2: error: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Werror=stringop-truncation]
  166 |  strncpy(current->config.net_l4_proto, UBWT_CONFIG_NET_L4_PROTO, sizeof(current->config.net_l4_proto) - 1);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:10: all] Error 1
make[1]: Leaving directory '/home/falso/src/ubwt/src'
make: *** [Makefile:4: all] Error 2

Fixed on v0.01b-dev