Merge "rmmod: fix full path syntax"

This commit is contained in:
Jean-Baptiste Queru 2012-01-13 07:47:25 -08:00 committed by android code review
commit e7b1f132c2

View file

@ -25,6 +25,8 @@ int rmmod_main(int argc, char **argv)
modname = strrchr(argv[1], '/');
if (!modname)
modname = argv[1];
else modname++;
dot = strchr(argv[1], '.');
if (dot)
*dot = '\0';