From 6b40711896d28613cebcc484eed4be69e75c23d4 Mon Sep 17 00:00:00 2001 From: T Jake Luciani Date: Mon, 2 Mar 2009 23:47:20 +0000 Subject: [PATCH] THRIFT-324: replace strlen with length git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@749478 13f79535-47bb-0310-9956-ffa450edef68 --- lib/perl/lib/Thrift/Socket.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/perl/lib/Thrift/Socket.pm b/lib/perl/lib/Thrift/Socket.pm index 732f35a8..96f544ef 100644 --- a/lib/perl/lib/Thrift/Socket.pm +++ b/lib/perl/lib/Thrift/Socket.pm @@ -241,7 +241,7 @@ sub write my $got = $sock->send($buf); if (!defined $got || $got == 0 ) { - die new Thrift::TException('TSocket: Could not write '.strlen($buf).' bytes '. + die new Thrift::TException('TSocket: Could not write '.length($buf).' bytes '. $self->{host}.':'.$self->{host}); } -- 2.17.1