diff options
author | Matt Wilson <msw@redhat.com> | 1999-09-09 22:35:17 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-09-09 22:35:17 +0000 |
commit | 1f8bab759cf80d0d2794f0dbdf65a41cfe24e2ce (patch) | |
tree | 4a346014c99932cf8544d00da0ca622ec7ab2864 /isys | |
parent | f4e486de50f4144573d6e80c3535172dc613fc88 (diff) | |
download | anaconda-1f8bab759cf80d0d2794f0dbdf65a41cfe24e2ce.tar.gz anaconda-1f8bab759cf80d0d2794f0dbdf65a41cfe24e2ce.tar.xz anaconda-1f8bab759cf80d0d2794f0dbdf65a41cfe24e2ce.zip |
fix for obob
Diffstat (limited to 'isys')
-rw-r--r-- | isys/moduleinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/isys/moduleinfo.c b/isys/moduleinfo.c index ef3a47a14..616fa6223 100644 --- a/isys/moduleinfo.c +++ b/isys/moduleinfo.c @@ -37,10 +37,10 @@ struct moduleInfo * isysFindModuleInfo(moduleInfoSet mis, const char * moduleName) { int i; - for (i = 0; i < mis->numModules; i++) + for (i = 0; i < mis->numModules; i++) { if (!strcmp(moduleName, mis->moduleList[i].moduleName)) return mis->moduleList + i; - + } return NULL; } @@ -166,7 +166,7 @@ int isysReadModuleInfo(const char * filename, moduleInfoSet mis) { } if (nextModule && nextModule->moduleName) mis->numModules++; - mis->numModules = nextModule - mis->moduleList; + mis->numModules = (nextModule - mis->moduleList) + 1; return 0; } |