/* Return the canonical absolute name of a given file.
- Copyright (C) 1996-2003, 2005-2007 Free Software Foundation, Inc.
+ Copyright (C) 1996-2003, 2005-2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
This program is free software: you can redistribute it and/or modify
goto error;
}
- n = __readlink (rpath, buf, path_max);
+ n = __readlink (rpath, buf, path_max - 1);
if (n < 0)
{
int saved_errno = errno;