From 2203f4cba9ddaacee1ad702b7948da0e59d33497 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 18 Dec 2015 20:46:46 +0100 Subject: tools: Fix inverted abort condition in idevicecrashreport This bug caused it to never wait for the 'ping' message from the crashreportmover service --- tools/idevicecrashreport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/idevicecrashreport.c') diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c index 7ac9baf..8c04fd1 100644 --- a/tools/idevicecrashreport.c +++ b/tools/idevicecrashreport.c @@ -405,7 +405,7 @@ int main(int argc, char* argv[]) { /* read "ping" message which indicates the crash logs have been moved to a safe harbor */ char *ping = malloc(4); int attempts = 0; - while ((strncmp(ping, "ping", 4) != 0) && (attempts > 10)) { + while ((strncmp(ping, "ping", 4) != 0) && (attempts < 10)) { uint32_t bytes = 0; device_error = idevice_connection_receive_timeout(connection, ping, 4, &bytes, 2000); if ((bytes == 0) && (device_error == IDEVICE_E_SUCCESS)) { -- cgit v1.1-32-gdbae