commit | d43bf2dc77382219069eafcc9a6490eddfa0776a | [log] [tgz] |
---|---|---|
author | that <github@that.at> | Sun Sep 21 23:13:02 2014 +0200 |
committer | Dees Troy <dees_troy@teamw.in> | Tue Nov 04 15:33:04 2014 +0100 |
tree | b713ad7caba2e5874660cb0cd1453a519fb1f21e | |
parent | 78d0c5fc25abf46205716f08be09e5b630f18d63 [diff] [blame] |
fix some compiler warnings Change-Id: I23c490e6228b0fcf656c76ac314c69508ba2329d
diff --git a/twrp-functions.cpp b/twrp-functions.cpp index 89714dd..b962457 100644 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp
@@ -66,7 +66,7 @@ memset(&buffer, 0, sizeof(buffer)); if (fgets(buffer, 128, exec) != NULL) { buffer[128] = '\n'; - buffer[129] = NULL; + buffer[129] = 0; result += buffer; } }