aboutsummaryrefslogtreecommitdiff
path: root/net/tcpshow
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2010-02-13 16:53:19 +0000
committerMartin Wilke <miwi@FreeBSD.org>2010-02-13 16:53:19 +0000
commit81992793527109d7b06d226fd27f0a591689790a (patch)
tree835e1a8f6462a5185249c73326f26eada093e437 /net/tcpshow
parent9281f7517f29a8ecb21eeb7c4b30faa2587e4ff0 (diff)
downloadports-81992793527109d7b06d226fd27f0a591689790a.tar.gz
ports-81992793527109d7b06d226fd27f0a591689790a.zip
Notes
Diffstat (limited to 'net/tcpshow')
-rw-r--r--net/tcpshow/files/patch-022
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tcpshow/files/patch-02 b/net/tcpshow/files/patch-02
index 41e00642d770..b0cd994f90c6 100644
--- a/net/tcpshow/files/patch-02
+++ b/net/tcpshow/files/patch-02
@@ -223,7 +223,7 @@
+ /* format: TIME MACSRC > MACDST, ethertype TYPE (0xCODE), ... */
+ if (*eTo == '>') {
+ char *s;
-+ (void)sscanf(p, "%s %s > %s", time, eFrom, eTo);
++ (void)sscanf(p, "%s %s > %17s", time, eFrom, eTo);
+ if ((s = strstr(p, "ethertype ")) != NULL) {
+ strlcpy(eType, s+10, sizeof(eType));
+ if ((s = strchr(eType, ' ')) != NULL) {