mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
parent
eda0828ca0
commit
762728fee0
@ -85,7 +85,7 @@ void Genode::print_lines(char const *string, size_t len, FUNC const &func)
|
||||
* Copy line from (untrusted) caller to local line buffer
|
||||
*/
|
||||
char line_buf[MAX_LINE_LEN];
|
||||
Genode::strncpy(line_buf, string, Genode::min(line_len + 1, sizeof(line_buf)));
|
||||
Genode::strncpy(line_buf, string, Genode::min(line_len, sizeof(line_buf)));
|
||||
func(line_buf);
|
||||
|
||||
string += line_len;
|
||||
|
Loading…
Reference in New Issue
Block a user