summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2014-09-21 23:13:02 +0200
committerDees Troy <dees_troy@teamw.in>2014-11-04 15:33:04 +0100
commitd43bf2dc77382219069eafcc9a6490eddfa0776a (patch)
treeb713ad7caba2e5874660cb0cd1453a519fb1f21e /twrp-functions.cpp
parentpartitionmanager: remove unused By_Block and By_Name methods (diff)
downloadandroid_bootable_recovery-d43bf2dc77382219069eafcc9a6490eddfa0776a.tar
android_bootable_recovery-d43bf2dc77382219069eafcc9a6490eddfa0776a.tar.gz
android_bootable_recovery-d43bf2dc77382219069eafcc9a6490eddfa0776a.tar.bz2
android_bootable_recovery-d43bf2dc77382219069eafcc9a6490eddfa0776a.tar.lz
android_bootable_recovery-d43bf2dc77382219069eafcc9a6490eddfa0776a.tar.xz
android_bootable_recovery-d43bf2dc77382219069eafcc9a6490eddfa0776a.tar.zst
android_bootable_recovery-d43bf2dc77382219069eafcc9a6490eddfa0776a.zip
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r--twrp-functions.cpp2
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;
}
}