Commit d401cc11ad3e2628fb86399fe0c8fa66578f157d
1 parent
6d35bf49
Exists in
master
and in
5 other branches
Ajustando teste de rede
Showing
2 changed files
with
10 additions
and
9 deletions
Show diff stats
po/pt_BR.po
@@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
5 | msgstr "" | 5 | msgstr "" |
6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
8 | -"POT-Creation-Date: 2013-11-27 11:36-0200\n" | 8 | +"POT-Creation-Date: 2013-11-27 14:51-0200\n" |
9 | "PO-Revision-Date: 2013-11-12 08:07-0200\n" | 9 | "PO-Revision-Date: 2013-11-12 08:07-0200\n" |
10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
11 | "Language-Team: Português <perry.werneck@gmail.com>\n" | 11 | "Language-Team: Português <perry.werneck@gmail.com>\n" |
@@ -664,12 +664,12 @@ msgstr "Erro \"%s\" gravando arquivo local (rc=%d)" | @@ -664,12 +664,12 @@ msgstr "Erro \"%s\" gravando arquivo local (rc=%d)" | ||
664 | msgid "Error %d resolving %s" | 664 | msgid "Error %d resolving %s" |
665 | msgstr "Erro %d resolvendo %s" | 665 | msgstr "Erro %d resolvendo %s" |
666 | 666 | ||
667 | -#: telnet.c:3141 telnet.c:3152 | 667 | +#: telnet.c:3145 telnet.c:3156 |
668 | #, c-format | 668 | #, c-format |
669 | msgid "Error in fcntl(%s) when setting non blocking mode" | 669 | msgid "Error in fcntl(%s) when setting non blocking mode" |
670 | msgstr "Erro em fcntl(%s) ao ativar o modo não blocante" | 670 | msgstr "Erro em fcntl(%s) ao ativar o modo não blocante" |
671 | 671 | ||
672 | -#: telnet.c:3131 | 672 | +#: telnet.c:3135 |
673 | #, c-format | 673 | #, c-format |
674 | msgid "Error in ioctl(%s) when setting no blocking mode" | 674 | msgid "Error in ioctl(%s) when setting no blocking mode" |
675 | msgstr "Erro em ioctl(%s) ao ativar o modo não blocante" | 675 | msgstr "Erro em ioctl(%s) ao ativar o modo não blocante" |
@@ -1692,7 +1692,7 @@ msgstr "Tipo de servidor:" | @@ -1692,7 +1692,7 @@ msgstr "Tipo de servidor:" | ||
1692 | msgid "TELNET Proxy: send error" | 1692 | msgid "TELNET Proxy: send error" |
1693 | msgstr "TELNET Proxy: Erro ao enviar" | 1693 | msgstr "TELNET Proxy: Erro ao enviar" |
1694 | 1694 | ||
1695 | -#: telnet.c:3338 | 1695 | +#: telnet.c:3342 |
1696 | msgid "TLS negotiation failure" | 1696 | msgid "TLS negotiation failure" |
1697 | msgstr "Negociação TLS falhou" | 1697 | msgstr "Negociação TLS falhou" |
1698 | 1698 |
src/lib3270/telnet.c
@@ -2710,12 +2710,13 @@ opt(unsigned char c) | @@ -2710,12 +2710,13 @@ opt(unsigned char c) | ||
2710 | 2710 | ||
2711 | void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, int len) | 2711 | void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, int len) |
2712 | { | 2712 | { |
2713 | + #define NETDUMP_MAX 121 | ||
2713 | 2714 | ||
2714 | if (lib3270_get_toggle(hSession,LIB3270_TOGGLE_NETWORK_TRACE)) | 2715 | if (lib3270_get_toggle(hSession,LIB3270_TOGGLE_NETWORK_TRACE)) |
2715 | { | 2716 | { |
2716 | - char l1[82]; | ||
2717 | - char l2[82]; | ||
2718 | - char l3[82]; | 2717 | + char l1[NETDUMP_MAX+2]; |
2718 | + char l2[NETDUMP_MAX+2]; | ||
2719 | + char l3[NETDUMP_MAX+2]; | ||
2719 | 2720 | ||
2720 | int offset; | 2721 | int offset; |
2721 | int col = 0; | 2722 | int col = 0; |
@@ -2724,7 +2725,7 @@ void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, in | @@ -2724,7 +2725,7 @@ void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, in | ||
2724 | 2725 | ||
2725 | time(<ime); | 2726 | time(<ime); |
2726 | strftime(l1, 81, "%x %X", localtime(<ime)); | 2727 | strftime(l1, 81, "%x %X", localtime(<ime)); |
2727 | - lib3270_write_nettrace(hSession,"%c %s %s data len=%d\n\n",direction,l1,direction == '>' ? "outbound" : "inbound", len); | 2728 | + lib3270_write_nettrace(hSession,"%c %s %s data len=%d\n\n",direction,l1,direction == '>' ? "SEND" : "RECV", len); |
2728 | 2729 | ||
2729 | for (offset = 0; offset < len; offset++) | 2730 | for (offset = 0; offset < len; offset++) |
2730 | { | 2731 | { |
@@ -2737,7 +2738,7 @@ void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, in | @@ -2737,7 +2738,7 @@ void trace_netdata(H3270 *hSession, char direction, unsigned const char *buf, in | ||
2737 | l2[col] = text[0]; | 2738 | l2[col] = text[0]; |
2738 | l3[col] = text[1]; | 2739 | l3[col] = text[1]; |
2739 | 2740 | ||
2740 | - if(++col >= 80) | 2741 | + if(++col >= NETDUMP_MAX) |
2741 | { | 2742 | { |
2742 | l1[col] = l2[col] = l3[col] = 0; | 2743 | l1[col] = l2[col] = l3[col] = 0; |
2743 | lib3270_write_nettrace(hSession,"\t%s\n\t%s\n\t%s\n\n",l1,l2,l3); | 2744 | lib3270_write_nettrace(hSession,"\t%s\n\t%s\n\t%s\n\n",l1,l2,l3); |