pkgsrc/math/snns/patches/patch-ab

14 lines
527 B
Text

$NetBSD: patch-ab,v 1.1.1.1 2001/06/28 15:18:05 wulf Exp $
--- xgui/sources/ui_config.c.orig Wed Jun 27 21:21:41 2001
+++ xgui/sources/ui_config.c Wed Jun 27 21:23:08 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++;