B. Walking into the room, the smell was overwhelming.
A dangling modifier is a modifier that clarifies about a subject which is not given in the statement. In this case, “Walking into the room” describes what we assume to be the narrator, without saying specifically that the narrator is doing that.