summaryrefslogtreecommitdiff
path: root/math/snns/files/patch-ag
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2001-10-25 14:29:32 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2001-10-25 14:29:32 +0000
commitdf7799e0ee86f8acc0cd40fb06e949a9c77f1310 (patch)
tree2cf6b8cf71d150f516f771fc94c0a0dfe1ddfb69 /math/snns/files/patch-ag
parentMaintainer has ignored bug reports for five months now. (diff)
Author's own patch for the "read error in configuration file" bug.
Notes
Notes: svn path=/head/; revision=49195
Diffstat (limited to 'math/snns/files/patch-ag')
-rw-r--r--math/snns/files/patch-ag12
1 files changed, 12 insertions, 0 deletions
diff --git a/math/snns/files/patch-ag b/math/snns/files/patch-ag
new file mode 100644
index 000000000000..a5b62ef16fc4
--- /dev/null
+++ b/math/snns/files/patch-ag
@@ -0,0 +1,12 @@
+--- xgui/sources/ui_config.c.orig Tue May 29 00:02:03 2001
++++ xgui/sources/ui_config.c Tue May 29 00:03:03 2001
+@@ -492,7 +492,8 @@
+ err = fscanf(filePtr,"%*[^:]: %d\n", &noParams);
+ chkretline(1);
+ lines++;
+- for (i=0; (i<UI_NO_LEARN_PARAMS+UI_NO_OF_CASCADE_PARAMS); i++){
++ for (i=0; (i<UI_NO_LEARN_PARAMS+UI_NO_OF_CASCADE_PARAMS)
++ && (i<noParams); i++){
+ err = fscanf(filePtr,"%*[^:]: %f\n", &ui_learnParameters[i]);
+ chkretline(1);
+ lines++;