summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 5384cc283..31d20bbaa 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -203,7 +203,7 @@ static int module_already_present(const char * name)
while (1) {
char buf[500];
if (!fgets(buf, sizeof(buf), f)) break;
- if (!strncmp(name, buf, strlen(name)))
+ if (!strncmp(name, buf, strlen(name)) && buf[strlen(name)] == ' ')
answ = 1;
}
fclose(f);