disp: msm: dsi: terminate buffer with NULL character

Change terminates the copied buffer with a null character.

Change-Id: I18d6b3ca861058a242bde399f631771d3a48eddd
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
Satya Rama Aditya Pinapala
2021-10-19 12:03:08 -07:00
parent 531591b654
commit 4413e3bb7e

View File

@@ -925,6 +925,7 @@ void *dsi_parser_get_head_node(void *in,
buf = parser->buf;
memcpy(buf, data, size);
buf[size] = '\0';
strreplace(buf, '\n', ' ');
strreplace(buf, '\t', '*');