ошибка во время компиляции busybox

root@ali-AN515-44:/home/ali/manticore_kernel/busybox# make CONFIG_PREFIX=/distro install

miscutils/devfsd.c: In function ‘action_execute’:
miscutils/devfsd.c:857:57: error: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 254 [-Werror=format-truncation=]
  857 |  snprintf(gv_info.devpath, sizeof(gv_info.devpath), "%s/%s", mount_point, info->devname);
      |                                                         ^~
miscutils/devfsd.c:857:2: note: ‘snprintf’ output 2 or more bytes (assuming 1025) into a destination of size 255
  857 |  snprintf(gv_info.devpath, sizeof(gv_info.devpath), "%s/%s", mount_point, info->devname);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
miscutils/devfsd.c: In function ‘action_copy’:
miscutils/devfsd.c:895:57: error: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 254 [-Werror=format-truncation=]
  895 |  snprintf(gv_info.devpath, sizeof(gv_info.devpath), "%s/%s", mount_point, info->devname);
      |                                                         ^~
miscutils/devfsd.c:895:2: note: ‘snprintf’ output 2 or more bytes (assuming 1025) into a destination of size 255
  895 |  snprintf(gv_info.devpath, sizeof(gv_info.devpath), "%s/%s", mount_point, info->devname);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [scripts/Makefile.build:198: miscutils/devfsd.o] Ошибка 1

Ответы (0 шт):