Don't call basename() and dirname() in an unportable way.
authored <ed@FreeBSD.org>
Thu, 28 Jul 2016 15:17:12 +0000 (15:17 +0000)
committered <ed@FreeBSD.org>
Thu, 28 Jul 2016 15:17:12 +0000 (15:17 +0000)
commit3cccb42bf6704f23f7590b99f5b0967f32defa27
tree452448fb0d5a20cc15f4c492ac60d0ff4c6807a5
parentab14ec3526b0b2b6aa4e6c197c456db4d13dde1f
Don't call basename() and dirname() in an unportable way.

POSIX allows these functions to modify their input buffer, so that they
have storage for the return value. Pull copies of the filename before
calling these utility functions.
usr.bin/sed/main.c