From 7ad9701a126be5f819bc3dd280cc990604959712 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 25 Mar 2018 15:14:04 -0300 Subject: [PATCH] strace: increase string length --- TraceScreen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TraceScreen.c b/TraceScreen.c index 04b3e3e7..f3bdce62 100644 --- a/TraceScreen.c +++ b/TraceScreen.c @@ -101,7 +101,7 @@ bool TraceScreen_forkTracer(TraceScreen* this) { int ok = fcntl(this->fdpair[1], F_SETFL, O_NONBLOCK); if (ok != -1) { xSnprintf(buffer, sizeof(buffer), "%d", this->super.process->pid); - execlp("strace", "strace", "-p", buffer, NULL); + execlp("strace", "strace", "-s", "512", "-p", buffer, NULL); } const char* message = "Could not execute 'strace'. Please make sure it is available in your $PATH."; ssize_t written = write(this->fdpair[1], message, strlen(message));