aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-02-14 00:53:19 +0800
committermiwi <miwi@FreeBSD.org>2010-02-14 00:53:19 +0800
commitc78360cb17a2b74f35004599ee730728a73e7252 (patch)
treea6264448caf3ec42e12842b018c7e584150f26d1 /net
parentb934a8acd52f3104cc152884563ea1162a3876f2 (diff)
downloadfreebsd-ports-gnome-c78360cb17a2b74f35004599ee730728a73e7252.tar.gz
freebsd-ports-gnome-c78360cb17a2b74f35004599ee730728a73e7252.tar.zst
freebsd-ports-gnome-c78360cb17a2b74f35004599ee730728a73e7252.zip
- Fix build with newer gcc
PR: 129687 Submitted by: Eugene Grosbein <eugen@kuzbass.ru> Approved by: maintainer timeout (more than 1 year ago)
Diffstat (limited to 'net')
-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) {