Fix static MAXLINE allocation issue and pass test04-05