
- 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'`
- 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'`