summaryrefslogtreecommitdiff
path: root/core/iputils/iputils-20121011-flood.patch
diff options
context:
space:
mode:
Diffstat (limited to 'core/iputils/iputils-20121011-flood.patch')
-rw-r--r--core/iputils/iputils-20121011-flood.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/core/iputils/iputils-20121011-flood.patch b/core/iputils/iputils-20121011-flood.patch
new file mode 100644
index 000000000..5ced2d115
--- /dev/null
+++ b/core/iputils/iputils-20121011-flood.patch
@@ -0,0 +1,22 @@
+--- iputils-s20121011/ping_common.h 2012-11-05 10:07:40.065281888 +0100
++++ iputils-s20121011-new/ping_common.h 2012-11-05 10:07:22.001268362 +0100
+@@ -141,7 +141,7 @@ static inline void write_stdout(const ch
+ do {
+ cc = write(STDOUT_FILENO, str + o, len - o);
+ o += cc;
+- } while (len >= o || cc < 0);
++ } while (len > o || cc < 0);
+ }
+
+ /*
+--- iputils-s20121011/ping_common.c 2012-11-05 10:07:40.066281889 +0100
++++ iputils-s20121011-new/ping_common.c 2012-11-05 10:07:22.007268368 +0100
+@@ -776,7 +776,7 @@ restamp:
+ if (!csfailed)
+ write_stdout("\b \b", 3);
+ else
+- write_stdout("\bC", 1);
++ write_stdout("\bC", 2);
+ } else {
+ int i;
+ __u8 *cp, *dp;