summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/snns/files/4.3-expand-path-strings.patch')
-rw-r--r--sci-mathematics/snns/files/4.3-expand-path-strings.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/sci-mathematics/snns/files/4.3-expand-path-strings.patch b/sci-mathematics/snns/files/4.3-expand-path-strings.patch
new file mode 100644
index 000000000000..e62a3cfa6cd4
--- /dev/null
+++ b/sci-mathematics/snns/files/4.3-expand-path-strings.patch
@@ -0,0 +1,33 @@
+--- a/tools/sources/convert2snns.c 2008-04-21 03:56:07.000000000 -0400
++++ b/tools/sources/convert2snns.c 2017-12-14 11:13:12.056308969 -0500
+@@ -54,8 +54,8 @@
+ /* Init functionname */
+ #define KOHONEN_INIT_FUNC_NAME "Kohonen_Weights_v3.2"
+
+-char *control_file,pattern_file[80],weight_file[80],
+- string[80],name[50];
++char *control_file,pattern_file[256],weight_file[256],
++ string[256],name[256];
+ int no_of_exemplars,X,Y,
+ ret, i, j, unit_no,
+ IUnits, OUnits, HUnits;
+--- a/tools/sources/snns2c.c 2017-12-14 11:05:48.372487874 -0500
++++ b/tools/sources/snns2c.c 2017-12-14 11:11:08.484915822 -0500
+@@ -1622,7 +1622,7 @@
+ FILE *fOutFile, *fHeaderFile;
+ pList OutList, FunctionList;
+ time_t timer;
+- char HeaderFile[50];
++ char HeaderFile[256];
+
+ /* calculate time for the date in the header of the output file */
+ time(&timer);
+@@ -1824,7 +1824,7 @@
+ FILE *fOutFile, *fHeaderFile;
+ pList OutList, FunctionList;
+ time_t timer;
+- char HeaderFile[50];
++ char HeaderFile[256];
+
+ /* calculate time for the date in the header of the output file */
+ time(&timer);