summaryrefslogtreecommitdiff
path: root/recipes/kismet/kismet-2008-05-R1/kismet-2008-05-R1-infinite-loop.diff
diff options
context:
space:
mode:
authorStanislav Brabec <utx@penguin.cz>2009-05-26 19:16:12 +0000
committerutx@penguin.cz <utx@penguin.cz>2009-05-26 19:16:12 +0000
commitd630bf6330993ada782a1bd856da22c78516a1d5 (patch)
tree6dea640889dbe4946eb5987d7f7e777ebc1c5b07 /recipes/kismet/kismet-2008-05-R1/kismet-2008-05-R1-infinite-loop.diff
parent11af43ab7498f86026004daeca86fdde8f1ae0b6 (diff)
kismet: Update to version 2008-05-R1.
Diffstat (limited to 'recipes/kismet/kismet-2008-05-R1/kismet-2008-05-R1-infinite-loop.diff')
-rw-r--r--recipes/kismet/kismet-2008-05-R1/kismet-2008-05-R1-infinite-loop.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/kismet/kismet-2008-05-R1/kismet-2008-05-R1-infinite-loop.diff b/recipes/kismet/kismet-2008-05-R1/kismet-2008-05-R1-infinite-loop.diff
new file mode 100644
index 0000000000..f8417943e8
--- /dev/null
+++ b/recipes/kismet/kismet-2008-05-R1/kismet-2008-05-R1-infinite-loop.diff
@@ -0,0 +1,20 @@
+--- gpsmap.cc
++++ gpsmap.cc
+@@ -874,7 +874,7 @@
+
+ // Break up the path to the gpsxml file and form a path based on that
+ unsigned int lastslash = 0;
+- for (unsigned int x = origxmlfile.find('/'); x != string::npos;
++ for (string::size_type x = origxmlfile.find('/'); x != string::npos;
+ lastslash = x, x = origxmlfile.find('/', lastslash+1)) {
+ // We don't actually need to do anything...
+ }
+@@ -882,7 +882,7 @@
+ comp = origxmlfile.substr(0, lastslash);
+
+ lastslash = 0;
+- for (unsigned int x = orignetfile.find('/'); x != string::npos;
++ for (string::size_type x = orignetfile.find('/'); x != string::npos;
+ lastslash = x, x = orignetfile.find('/', lastslash+1)) {
+ // We don't actually need to do anything...
+ }