-Wpointer-sign: alpha-tdep.c.
[deliverable/binutils-gdb.git] / gdb / inf-child.c
index ae2dd1e10128165ed92e1ec2107da0dd455c491f..5f3492293487fa2f29f289b2f3d1c258eb11f7ee 100644 (file)
@@ -1,8 +1,7 @@
 /* Default child (native) target interface, for GDB when running under
    Unix.
 
-   Copyright (C) 1988-1996, 1998-2002, 2004-2005, 2007-2012 Free
-   Software Foundation, Inc.
+   Copyright (C) 1988-2013 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -346,7 +345,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.025002 seconds and 4 git commands to generate.