Update redir.c

Fixed some mistakes