summaryrefslogtreecommitdiff
path: root/math/atlas/files/patch-include_atlas__genparse.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/atlas/files/patch-include_atlas__genparse.h')
-rw-r--r--math/atlas/files/patch-include_atlas__genparse.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/math/atlas/files/patch-include_atlas__genparse.h b/math/atlas/files/patch-include_atlas__genparse.h
new file mode 100644
index 000000000000..84d5b4a5e0aa
--- /dev/null
+++ b/math/atlas/files/patch-include_atlas__genparse.h
@@ -0,0 +1,12 @@
+--- include/atlas_genparse.h.orig 2016-07-28 19:42:59 UTC
++++ include/atlas_genparse.h
+@@ -163,7 +163,8 @@ static int GetDoubleArr(char *str, int N, double *d)
+ if (!str)
+ break;
+ str++;
+- assert(sscanf(str, "%le", d+i) == 1);
++ if (sscanf(str, "%le", d+i) != 1)
++ break;
+ i++;
+ }
+ return(i);