diff --git a/po/pt_BR.po b/po/pt_BR.po index 6c157eb..934e6d6 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-11-27 11:36-0200\n" +"POT-Creation-Date: 2013-11-27 14:51-0200\n" "PO-Revision-Date: 2013-11-12 08:07-0200\n" "Last-Translator: Perry Werneck \n" "Language-Team: Português \n" @@ -664,12 +664,12 @@ msgstr "Erro \"%s\" gravando arquivo local (rc=%d)" msgid "Error %d resolving %s" msgstr "Erro %d resolvendo %s" -#: telnet.c:3141 telnet.c:3152 +#: telnet.c:3145 telnet.c:3156 #, c-format msgid "Error in fcntl(%s) when setting non blocking mode" msgstr "Erro em fcntl(%s) ao ativar o modo não blocante" -#: telnet.c:3131 +#: telnet.c:3135 #, c-format msgid "Error in ioctl(%s) when setting no blocking mode" msgstr "Erro em ioctl(%s) ao ativar o modo não blocante" @@ -1692,7 +1692,7 @@ msgstr "Tipo de servidor:" msgid "TELNET Proxy: send error" msgstr "TELNET Proxy: Erro ao enviar" -#: telnet.c:3338 +#: telnet.c:3342 msgid "TLS negotiation failure" msgstr "Negociação TLS falhou" diff --git a/src/lib3270/telnet.c b/src/lib3270/telnet.c index a471e29..d4e6ae2 100644 --- a/src/lib3270/telnet.c +++ b/src/lib3270/telnet.c @@ -2710,12 +2710,13 @@ opt(unsigned char c) void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, int len) { + #define NETDUMP_MAX 121 if (lib3270_get_toggle(hSession,LIB3270_TOGGLE_NETWORK_TRACE)) { - char l1[82]; - char l2[82]; - char l3[82]; + char l1[NETDUMP_MAX+2]; + char l2[NETDUMP_MAX+2]; + char l3[NETDUMP_MAX+2]; int offset; int col = 0; @@ -2724,7 +2725,7 @@ void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, in time(<ime); strftime(l1, 81, "%x %X", localtime(<ime)); - lib3270_write_nettrace(hSession,"%c %s %s data len=%d\n\n",direction,l1,direction == '>' ? "outbound" : "inbound", len); + lib3270_write_nettrace(hSession,"%c %s %s data len=%d\n\n",direction,l1,direction == '>' ? "SEND" : "RECV", len); for (offset = 0; offset < len; offset++) { @@ -2737,7 +2738,7 @@ void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, in l2[col] = text[0]; l3[col] = text[1]; - if(++col >= 80) + if(++col >= NETDUMP_MAX) { l1[col] = l2[col] = l3[col] = 0; lib3270_write_nettrace(hSession,"\t%s\n\t%s\n\t%s\n\n",l1,l2,l3); -- libgit2 0.21.2