Hard coded buffer length replaced by macro LINE_SIZE
Macro replaced with sizeof()
Const-correctness