agenthelper-pam: Fix newline-trimming code
authorColin Walters <walters@verbum.org>
Wed, 6 Jun 2012 13:05:14 +0000 (09:05 -0400)
committerDavid Zeuthen <zeuthen@gmail.com>
Wed, 6 Jun 2012 17:27:31 +0000 (13:27 -0400)
commit14121fda7e4fa9463c66ce419cc32be7e7f3b535
tree47bd7c7e8189f6e95204fd321fd1f5c86a0aa240
parent4f7830c4d3200eac14b49f04f2c200e3cfd824c1
agenthelper-pam: Fix newline-trimming code

First, we were using == instead of =, as the author probably intended.
But after changing that, we're now assigning to const memory.  Fix
that by writing to a temporary string buffer.

Signed-off-by: David Zeuthen <zeuthen@gmail.com>
src/polkitagent/polkitagenthelper-pam.c