From 4e8845e7b05502daf5c399b319cfbcd05dcc77a2 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 3 Sep 2006 18:44:18 +0000 Subject: Release 10.35.02 git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@34 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libpam.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/libpam.c b/lib/libpam.c index bbfa7e32..6d2acba7 100644 --- a/lib/libpam.c +++ b/lib/libpam.c @@ -1074,7 +1074,7 @@ pm_feed_from_pamtuples(int const pipeToFeedFd, outpam.file = fdopen(pipeToFeedFd, "w"); /* The following signals (and normally kills) the process with - SIGPIPE if the pipe does not take all 'inputLength' bytes. + SIGPIPE if the pipe does not take all the data. */ pnm_writepam(&outpam, *inputTuplesP->tuplesP); @@ -1089,10 +1089,11 @@ pm_accept_to_pamtuples(int const pipeToSuckFd, struct pamtuples * const outputTuplesP = accepterParm; - struct pam inpam; + struct pam * const inpamP = outputTuplesP->pamP; *outputTuplesP->tuplesP = - pnm_readpam(fdopen(pipeToSuckFd, "r"), &inpam, sizeof(inpam)); + pnm_readpam(fdopen(pipeToSuckFd, "r"), inpamP, + PAM_STRUCT_SIZE(tuple_type)); - pm_close(inpam.file); + pm_close(inpamP->file); } -- cgit 1.4.1