]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs: Use dynamically allocated character buffers
authorChuck Lever <chuck.lever@oracle.com>
Fri, 24 Aug 2007 17:11:27 +0000 (13:11 -0400)
committerNeil Brown <neilb@suse.de>
Fri, 24 Aug 2007 22:19:33 +0000 (08:19 +1000)
commit1545835aa9dc100b0fedaeaf71e716d12e25b439
tree5d4f76f2273b0d5f0d7648d7ac984c8ff97cfeef
parent60fd6cd0ada4f501d6d6bcbc3e14950d453c428d
mount.nfs: Use dynamically allocated character buffers

Replace the use of static character arrays with buffers allocated via
xstrdup() in stropts.c.

I added a couple of extra length checks; not sure if these are really
necessary.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
utils/mount/stropts.c