libbtf: Enlarge the 'cmd' buffer to not possibly truncate the pathname

Addressing this compiler warning:

  /home/acme/git/pahole/libbtf.c: In function ‘btf_elf__write’:
  /home/acme/git/pahole/libbtf.c:655:53: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4076 [-Werror=format-truncation=]
     snprintf(cmd, sizeof(cmd), "%s --add-section .BTF=%s %s",
                                                       ^~
       llvm_objcopy, tmp_fn, filename);
                     ~~~~~~
  /home/acme/git/pahole/libbtf.c:655:3: note: ‘snprintf’ output 22 or more bytes (assuming 4117) into a destination of size 4096
     snprintf(cmd, sizeof(cmd), "%s --add-section .BTF=%s %s",
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       llvm_objcopy, tmp_fn, filename);
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 file changed