Wilford <G.Wilford@surrey.ac.uk>.
* Adam Morley <adam at gmi dot com>
January 27, 2005: synchronize what amd2ldif does vs. what the ldap.schema
expects.
+
+* Graeme Wilford <G.Wilford@surrey.ac.uk>
+July 4, 2005: buffer overflow in pawd.
+
+2005-07-05 Erez Zadok <ezk@cs.sunysb.edu>
+
+ * amq/pawd.c (getawd): avoid buffer overflow. Bug fix from Graeme
+ Wilford <G.Wilford@surrey.ac.uk>.
+
2005-06-30 Erez Zadok <ezk@cs.sunysb.edu>
* amd/map.c (get_next_exported_ap): Avoid running off the end of
* extern for sleep(3) may be missing on older gcc systems
* updated nfs_args structure on aix4.
* possible running off end of exported_ap[] array.
+ * buffer overflow in pawd.
*** Notes specific to am-utils version 6.1
* SUCH DAMAGE.
*
*
- * $Id: pawd.c,v 1.17 2005/04/25 01:54:50 christos Exp $
+ * $Id: pawd.c,v 1.18 2005/07/05 17:45:37 ezk Exp $
*
*/
getawd(char *path)
{
#ifdef HAVE_GETCWD
- char *wd = getcwd(path, MAXPATHLEN+1);
+ char *wd = getcwd(path, MAXPATHLEN);
#else /* not HAVE_GETCWD */
char *wd = getwd(path);
#endif /* not HAVE_GETCWD */