blob: 5e6c3a4021a55cffdc321bd38c7b133239d2f184 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$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++;
|