From c7063c2b3fd0d43c3c07675fc5e0b8d671fa133a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 26 Jun 2015 21:18:46 -0700 Subject: [PATCH] Use _syscall to verify that -S's truncate worked. --- ldid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldid.cpp b/ldid.cpp index 7e56f14..027ca42 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -1014,7 +1014,7 @@ int main(int argc, const char *argv[]) { asprintf(&temp, "%s.%s.cs", dir, base); fclose(fopen(temp, "w+")); - truncate(temp, offset); + _syscall(truncate(temp, offset)); void *file(map(temp, 0, offset, NULL, false)); memset(file, 0, offset); -- 2.45.2