From: Jay Freeman (saurik) Date: Sat, 27 Jun 2015 04:18:46 +0000 (-0700) Subject: Use _syscall to verify that -S's truncate worked. X-Git-Tag: v1.2.0~3 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/c7063c2b3fd0d43c3c07675fc5e0b8d671fa133a Use _syscall to verify that -S's truncate worked. --- 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);