aboutsummaryrefslogtreecommitdiffstats
path: root/math/snns
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-10-25 22:29:32 +0800
committerdes <des@FreeBSD.org>2001-10-25 22:29:32 +0800
commit756634bda1d567a11d75e2d20ef6f481198bb229 (patch)
tree2c031e957890f3aad61638075bc503758583bd14 /math/snns
parent637fb8eb34bdebf4ab7565aba380ae590481c80c (diff)
downloadfreebsd-ports-graphics-756634bda1d567a11d75e2d20ef6f481198bb229.tar.gz
freebsd-ports-graphics-756634bda1d567a11d75e2d20ef6f481198bb229.tar.zst
freebsd-ports-graphics-756634bda1d567a11d75e2d20ef6f481198bb229.zip
Author's own patch for the "read error in configuration file" bug.
Diffstat (limited to 'math/snns')
-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 00000000000..a5b62ef16fc
--- /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++;