From d43bf2dc77382219069eafcc9a6490eddfa0776a Mon Sep 17 00:00:00 2001 From: that Date: Sun, 21 Sep 2014 23:13:02 +0200 Subject: fix some compiler warnings Change-Id: I23c490e6228b0fcf656c76ac314c69508ba2329d --- twrp-functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'twrp-functions.cpp') 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; } } -- cgit v1.2.3