diff options
author | ed <ed@FreeBSD.org> | 2016-05-31 06:45:19 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2016-05-31 06:45:19 +0000 |
commit | 12cc424125e73bc7b3a2e8a26a233291ff2a6b8a (patch) | |
tree | 13d7cc1c3d73a5c83582a0ef5d5524808cd31e10 /usr.bin | |
parent | b504edd9ef4d37f1250c07842a56d539829bae0d (diff) | |
download | FreeBSD-src-12cc424125e73bc7b3a2e8a26a233291ff2a6b8a.zip FreeBSD-src-12cc424125e73bc7b3a2e8a26a233291ff2a6b8a.tar.gz |
Stop using the non-standard basename_r() function.
This change makes the code use the POSIX basename() function. It has the
advantage that (if implemented correctly), it also imposes no restrict
on the pathname length.
Notice that I haven't added any error handling to the strdup() call. It
looks like none of the other calls to strdup() and malloc() performed by
this utility do it either.
Reviewed by: hrs
Differential Revision: https://reviews.freebsd.org/D6626
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions