gdb/
[deliverable/binutils-gdb.git] / gdb / inf-child.c
index ae2dd1e10128165ed92e1ec2107da0dd455c491f..3530e75768ec70510280be5cc6ef4c2cf187e4c1 100644 (file)
@@ -346,7 +346,7 @@ inf_child_fileio_readlink (const char *filename, int *target_errno)
   /* We support readlink only on systems that also provide a compile-time
      maximum path length (MAXPATHLEN), at least for now.  */
 #if defined (HAVE_READLINK) && defined (MAXPATHLEN)
-  char buf[MAXPATHLEN];
+  char buf[MAXPATHLEN - 1];
   int len;
   char *ret;
 
This page took 0.024192 seconds and 4 git commands to generate.