commit | 16bda3bd1f8e486ed93f5182fc777be1e813bce7 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Mon May 18 13:08:04 2009 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon May 18 13:08:04 2009 +0200 |
tree | bf6571888d13007e3e51664b9e9eba9346bb7838 | |
parent | c396fe6306f9a769d3a91809eb03361640c2f2fc [diff] [blame] |
depmod: fix handling of .gz modules Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/modutils/modutils.c b/modutils/modutils.c index 0f6cb0f..f437a98 100644 --- a/modutils/modutils.c +++ b/modutils/modutils.c
@@ -57,7 +57,7 @@ from = bb_get_last_path_component_nostrip(filename); for (i = 0; i < (MODULE_NAME_LEN-1) && from[i] != '\0' && from[i] != '.'; i++) modname[i] = (from[i] == '-') ? '_' : from[i]; - modname[i] = 0; + modname[i] = '\0'; return modname; }