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

Addressing this compiler warning:

  [ 22%] Building C object CMakeFiles/dwarves.dir/libctf.c.o
  /home/acme/git/pahole/libctf.h: In function ‘ctf__encode’:
  /home/acme/git/pahole/libctf.c:744:62: error: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4064 [-Werror=format-truncation=]
    snprintf(cmd, sizeof(cmd), "objcopy --add-section .SUNW_ctf=%s %s",
                                                                ^~
      pathname, ctf->filename);
      ~~~~~~~~
  /home/acme/git/pahole/libctf.c:744:2: note: ‘snprintf’ output 34 or more bytes (assuming 4129) into a destination of size 4096
    snprintf(cmd, sizeof(cmd), "objcopy --add-section .SUNW_ctf=%s %s",
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      pathname, ctf->filename);
      ~~~~~~~~~~~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

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