summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2015-04-15 13:49:45 +0200
committerDees Troy <dees_troy@teamw.in>2015-05-29 17:56:19 +0200
commit46bdc9681507e3a8484b2050a8f3ff8c229e890d (patch)
treecdc36d7e047b209ef097d9be16c1fad805f3f7c6 /twrp-functions.cpp
parentminuitwrp: remove unused variable (diff)
downloadandroid_bootable_recovery-46bdc9681507e3a8484b2050a8f3ff8c229e890d.tar
android_bootable_recovery-46bdc9681507e3a8484b2050a8f3ff8c229e890d.tar.gz
android_bootable_recovery-46bdc9681507e3a8484b2050a8f3ff8c229e890d.tar.bz2
android_bootable_recovery-46bdc9681507e3a8484b2050a8f3ff8c229e890d.tar.lz
android_bootable_recovery-46bdc9681507e3a8484b2050a8f3ff8c229e890d.tar.xz
android_bootable_recovery-46bdc9681507e3a8484b2050a8f3ff8c229e890d.tar.zst
android_bootable_recovery-46bdc9681507e3a8484b2050a8f3ff8c229e890d.zip
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r--twrp-functions.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index 3bc879929..6780e1db2 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -64,10 +64,7 @@ int TWFunc::Exec_Cmd(const string& cmd, string &result) {
exec = __popen(cmd.c_str(), "r");
if (!exec) return -1;
while(!feof(exec)) {
- memset(&buffer, 0, sizeof(buffer));
if (fgets(buffer, 128, exec) != NULL) {
- buffer[128] = '\n';
- buffer[129] = 0;
result += buffer;
}
}