Improve portability of patch(1):
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 10 Apr 2006 08:11:43 +0000 (08:11 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 10 Apr 2006 08:11:43 +0000 (08:11 +0000)
commit41871674d0079dec70d55eb824f39d07dc7b3310
tree4bc7a354cc0a2506399973cdd8f01fcfb81a8a12
parent933a3a0d02a316eae1d685167c0832f51796e8b3
Improve portability of patch(1):
- basename(3) and dirname(3) can either return a pointer to
  static storage (like on all BSDs) or modify the argument
  (like on Linux). strdup the argument to support both.
- fix argument range of ctype macros.
usr.bin/patch/backupfile.c
usr.bin/patch/inp.c
usr.bin/patch/patch.c
usr.bin/patch/pch.c
usr.bin/patch/util.c