reg: Avoid possible out-of-bounds memory access when a switch is only a forward slash...