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:
@@ -925,6 +925,7 @@ void *dsi_parser_get_head_node(void *in,
|
|||||||
buf = parser->buf;
|
buf = parser->buf;
|
||||||
|
|
||||||
memcpy(buf, data, size);
|
memcpy(buf, data, size);
|
||||||
|
buf[size] = '\0';
|
||||||
|
|
||||||
strreplace(buf, '\n', ' ');
|
strreplace(buf, '\n', ' ');
|
||||||
strreplace(buf, '\t', '*');
|
strreplace(buf, '\t', '*');
|
||||||
|
Reference in New Issue
Block a user