Added terminator character in buffer