From 23f2c39906f42f88adbf8935c0482034dc23e9cf Mon Sep 17 00:00:00 2001 From: Kevin Steck Date: Thu, 17 Oct 2013 18:24:31 -0400 Subject: Skip the = or \n before grabbing Zip_File. Change-Id: I0454f8fc3cbe037fac63ef5861f8f373e4654d49 --- twrp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twrp.cpp b/twrp.cpp index 56ffedb90..82704b51d 100644 --- a/twrp.cpp +++ b/twrp.cpp @@ -157,6 +157,9 @@ int main(int argc, char **argv) { index2 = 0; while (*ptr != '=' && *ptr != '\n') ptr++; + // skip the = before grabbing Zip_File + while (*ptr == '=') + ptr++; if (*ptr) { Zip_File = ptr; } else -- cgit v1.2.3