diff options
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r-- | twrp-functions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp index 89714dd7d..b96245751 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -66,7 +66,7 @@ int TWFunc::Exec_Cmd(const string& cmd, string &result) { memset(&buffer, 0, sizeof(buffer)); if (fgets(buffer, 128, exec) != NULL) { buffer[128] = '\n'; - buffer[129] = NULL; + buffer[129] = 0; result += buffer; } } |