diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/libmuscle/files/3.7-bufferoverflow.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/libmuscle/files/3.7-bufferoverflow.patch')
-rw-r--r-- | sci-libs/libmuscle/files/3.7-bufferoverflow.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sci-libs/libmuscle/files/3.7-bufferoverflow.patch b/sci-libs/libmuscle/files/3.7-bufferoverflow.patch new file mode 100644 index 000000000000..384f17acfbf4 --- /dev/null +++ b/sci-libs/libmuscle/files/3.7-bufferoverflow.patch @@ -0,0 +1,22 @@ +--- a/libMUSCLE/globalslinux.cpp ++++ b/libMUSCLE/globalslinux.cpp +@@ -159,7 +159,7 @@ + }
+ return DEFAULT_RAM;
+ }
+- int Bytes = atoi(pMem+9)*1000;
++ long Bytes = atol(pMem+9)*1000;
+ return ((double) Bytes)/1e6;
+ }
+
+--- a/libMUSCLE/progress.cpp ++++ b/libMUSCLE/progress.cpp +@@ -48,7 +48,7 @@ + if (MB < 0)
+ return "";
+
+- static char Str[9];
++ static char Str[11];
+ static double MaxMB = 0;
+ static double RAMMB = 0;
+
|