From: Anders Kaseorg Date: Mon, 3 May 2010 00:27:38 +0000 (-0400) Subject: barnowl/zcrypt.pl: Fix a syntax error. X-Git-Url: https://sipb.mit.edu/gitweb.cgi/snippets/.git/commitdiff_plain/d58b13ca60e4239e4bf1f26dab0948818e2ffd7f barnowl/zcrypt.pl: Fix a syntax error. It would appear that commit c0df155c9b3c4287ea11289f71f63ae7ebb1f360 was never tested. Signed-off-by: Anders Kaseorg --- diff --git a/barnowl/zcrypt.pl b/barnowl/zcrypt.pl index cf864fb..38efafe 100644 --- a/barnowl/zcrypt.pl +++ b/barnowl/zcrypt.pl @@ -25,7 +25,7 @@ BarnOwl::new_command(decrypt => sub { my ($zo, $zi); my $pid = open2($zo, $zi, '/mit/outland/bin/zcrypt', '-D', @args) or die "Couldn't launch zcrypt\n"; my $decrypted; - print $zi $msg->fields[1] . "\n"; + print $zi @{$msg->fields}[1] . "\n"; close $zi; while (<$zo>) { chomp;