summaryrefslogtreecommitdiff
path: root/net/gspoof/files/patch-console.c
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-08-30 17:04:34 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-08-30 17:04:34 +0000
commit036a436cd6ea4825d910eb9e0dd8b6179c2366c1 (patch)
tree4281f4b86093544e17203686b4e38f2aff408ec2 /net/gspoof/files/patch-console.c
parent- Update to version 0.9.1 (diff)
- Update to version 3.0
PR: 56195 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=88085
Diffstat (limited to 'net/gspoof/files/patch-console.c')
-rw-r--r--net/gspoof/files/patch-console.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/gspoof/files/patch-console.c b/net/gspoof/files/patch-console.c
index 79b02c981e84..9a185e566b36 100644
--- a/net/gspoof/files/patch-console.c
+++ b/net/gspoof/files/patch-console.c
@@ -1,23 +1,23 @@
---- console.c.orig Wed Sep 25 04:20:25 2002
-+++ console.c Wed May 7 03:42:30 2003
-@@ -333,7 +333,11 @@
+--- console.c.orig Sat Aug 30 00:16:50 2003
++++ console.c Sat Aug 30 15:56:23 2003
+@@ -335,7 +335,11 @@
fgets(value, 20, stdin);
seq = atol(value);
}
+#ifdef __FreeBSD__
-+ while (atoi(value) < 0 || atoi(value) > 4294970000);
++ while (atoi(value) < 0 || strtoll(value, NULL, 10) > 4294970000);
+#else
while (atoi(value) < 0 || atoll(value) > 4294970000);
+#endif
}
else if (!strcmp ("3.5", cmd))
{
-@@ -343,7 +347,11 @@
+@@ -345,7 +349,11 @@
fgets(value, 20, stdin);
ack = atol(value);
}
+#ifdef __FreeBSD__
-+ while (atoi(value) < 0 || atoi(value) > 4294970000);
++ while (atoi(value) < 0 || strtoll(value, NULL, 10) > 4294970000);
+#else
while (atoi(value) < 0 || atoll(value) > 4294970000);
+#endif