]> sipb.mit.edu Git - snippets/.git/commitdiff
barnowl/zcrypt.pl: Fix a syntax error.
authorAnders Kaseorg <andersk@mit.edu>
Mon, 3 May 2010 00:27:38 +0000 (20:27 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Mon, 3 May 2010 00:27:38 +0000 (20:27 -0400)
It would appear that commit c0df155c9b3c4287ea11289f71f63ae7ebb1f360
was never tested.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
barnowl/zcrypt.pl

index cf864fb26e847f28d46791d2a4a5e3c517026ad2..38efafe2197e045da08dedeeeb6480a30938229d 100644 (file)
@@ -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;