aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2020-11-27 11:32:41 +0100
committerGuillermo Ramos2020-11-27 11:32:41 +0100
commit6a61e9bd333f58aeea401bf6958446e9878df30d (patch)
treec30de4f31034506384d0360d6577a043e9f9042d
parent0deb9dbd3897e81fb0b7287af9b8322e0d5e5263 (diff)
downloadtgutils-6a61e9bd333f58aeea401bf6958446e9878df30d.tar.gz
Fix wrong descriptor syntax in tgrecv
-rwxr-xr-xtgrecv2
1 files changed, 1 insertions, 1 deletions
diff --git a/tgrecv b/tgrecv
index 8456401..f722cb9 100755
--- a/tgrecv
+++ b/tgrecv
@@ -59,7 +59,7 @@ if ($AUTO_OFFSET && ! $OFFSET) {
my $api = TgLib::Api->new($TOKEN, $logger);
my $updates = $api->get_updates($TIMEOUT, $OFFSET);
-my $out = STDOUT;
+my $out = *STDOUT;
if ($OUTPUT) {
open($out, ">", $OUTPUT) or die "Cannot open $OUTPUT for writing: $!";
}