christos 566893d359 - use MAXPATHLEN to get the array size for the path we store.
- use strlcpy() instead of strncpy() to avoid the off-by-one error
  and the three missing '\0' terminations.
- perform bounds checks to make sure we don't turn this into a random
  memory writing tool using setenv HOME `perl -e 'print "a"x5000'`
2001-01-29 01:22:31 +00:00
..
2001-01-10 13:20:17 +00:00
2001-01-04 21:50:13 +00:00
2001-01-05 23:11:13 +00:00
2001-01-23 15:55:30 +00:00
2001-01-10 21:30:05 +00:00
2001-01-19 09:02:40 +00:00
2001-01-06 23:36:36 +00:00
2001-01-09 15:59:47 +00:00
2001-01-08 14:53:19 +00:00