diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-05 15:20:20 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-06-05 15:20:20 +0000 |
commit | d8eafdaf6dcc25efbf046f5d3c872a2f35fd7510 (patch) | |
tree | 51b22ffb3fc9dffd04660bfe1aff5924753a8ab8 | |
parent | 7c793c8e2c4082d51542d0a275284d57cff6ef27 (diff) | |
download | drakx-backup-do-not-use-d8eafdaf6dcc25efbf046f5d3c872a2f35fd7510.tar drakx-backup-do-not-use-d8eafdaf6dcc25efbf046f5d3c872a2f35fd7510.tar.gz drakx-backup-do-not-use-d8eafdaf6dcc25efbf046f5d3c872a2f35fd7510.tar.bz2 drakx-backup-do-not-use-d8eafdaf6dcc25efbf046f5d3c872a2f35fd7510.tar.xz drakx-backup-do-not-use-d8eafdaf6dcc25efbf046f5d3c872a2f35fd7510.zip |
fix minor bug detecting when modules are present
-rw-r--r-- | mdk-stage1/modules.c | 2 |
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); |