minuitwrp: fix crash issue, when the console use TTF font to display unicode font.
gui: fix terminal command unusual line breaks and missing characters at the end of a read buf. Change-Id: I8d3d740b6066b1594c5148b2012f0e7bcbecc22b
This commit is contained in:
+1
-2
@@ -1360,8 +1360,7 @@ int GUIAction::terminalcommand(std::string arg)
|
||||
} else {
|
||||
// Try to read output
|
||||
memset(line, 0, sizeof(line));
|
||||
bytes_read = read(fd, line, sizeof(line));
|
||||
if (bytes_read > 0)
|
||||
if(fgets(line, sizeof(line), fp) != NULL)
|
||||
gui_print("%s", line); // Display output
|
||||
else
|
||||
keep_going = 0; // Done executing
|
||||
|
||||
Reference in New Issue
Block a user