Hello doko,
I tried to reproduce this problem, but, I just see a warning other than
an error:
I am building the package on 'unstable' using debuild:
cc -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D__CHECK_ENDIAN__ -g -O2
-fdebug-prefix-map=/home/breno/source/nvme-cli-1.1=. -fstack-protector-strong
-Wformat -Werror=format-security -std=gnu99 -DNVME_VERSION='"1.1"' nvme.c -o
nvme argconfig.o suffix.o parser.o nvme-print.o nvme-ioctl.o nvme-lightnvm.o
fabrics.o json.o plugin.o intel-nvme.o lnvm-nvme.o memblaze-nvme.o
nvme-models.o -Wl,-z,relro -Wl,-z,now
nvme.c: In function ‘list’:
nvme.c:849:35: warning: ‘%s’ directive output may be truncated writing
up to 255 bytes into a region of size 251 [-Wformat-truncation=]
snprintf(path, sizeof(path), "%s%s", dev, devices[i]->d_name);
^~
I am using GCC version 7.0.1, as shown:
➜ nvme-cli-1.1 cc --version
cc (Debian 7-20170302-1) 7.0.1 20170302 (experimental) [trunk revision 245832]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.