]> git.decadent.org.uk Git - nfs-utils.git/commit
nfs-utils: declare a static common buffer for nfssvc.c routines
authorJeff Layton <jlayton@redhat.com>
Sat, 1 Aug 2009 11:21:26 +0000 (07:21 -0400)
committerSteve Dickson <steved@redhat.com>
Sat, 1 Aug 2009 11:21:26 +0000 (07:21 -0400)
commit775dea70ccc7556ac613def7896b3d3c1ff85ab5
tree4b543c7d26a630f01f1c02f1f4fb2bce393c9fc8
parent0d53a1d0ff5635d3af2f0d10e1f00f5de1353490
nfs-utils: declare a static common buffer for nfssvc.c routines

Several of the routines in nfssvc.c declare a buffer for strings. Use a
shared static buffer instead to keep it off of the stack. Also, the
buffer allocated in some places is *really* large. BUFSIZ is generally
8k. These routines don't need nearly that much.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/nfsd/nfssvc.c