aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/iperf/iperf-2.0.4/001-cast-to-max_size_t-instead-of-int.patch
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2010-05-28 16:34:33 +0400
committerRoman I Khimov <khimov@altell.ru>2010-06-10 23:18:54 +0400
commitc10c33f86903c93611023197a7f812459c2dfe2d (patch)
tree706bf9475724a223bc0c2d4b942dc4d0f3c938e5 /recipes/iperf/iperf-2.0.4/001-cast-to-max_size_t-instead-of-int.patch
parentd5cdf92bba08438c248aae145503de5fd829720a (diff)
downloadopenembedded-c10c33f86903c93611023197a7f812459c2dfe2d.tar.gz
iperf 2.0.4: import Debian patches
Fixes a lot of real bugs. Signed-off-by: Roman I Khimov <khimov@altell.ru>
Diffstat (limited to 'recipes/iperf/iperf-2.0.4/001-cast-to-max_size_t-instead-of-int.patch')
-rw-r--r--recipes/iperf/iperf-2.0.4/001-cast-to-max_size_t-instead-of-int.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/iperf/iperf-2.0.4/001-cast-to-max_size_t-instead-of-int.patch b/recipes/iperf/iperf-2.0.4/001-cast-to-max_size_t-instead-of-int.patch
new file mode 100644
index 0000000000..3a90175191
--- /dev/null
+++ b/recipes/iperf/iperf-2.0.4/001-cast-to-max_size_t-instead-of-int.patch
@@ -0,0 +1,11 @@
+--- iperf-2.0.4.orig/src/Settings.cpp.orig 2008-04-08 04:37:54.000000000 +0200
++++ iperf-2.0.4/src/Settings.cpp 2008-05-07 17:41:03.923942801 +0200
+@@ -458,7 +458,7 @@
+ case 't': // seconds to write for
+ // time mode (instead of amount mode)
+ setModeTime( mExtSettings );
+- mExtSettings->mAmount = (int) (atof( optarg ) * 100.0);
++ mExtSettings->mAmount = (max_size_t) (atof( optarg ) * 100.0);
+ break;
+
+ case 'u': // UDP instead of TCP