about summary refs log tree commit diff
path: root/collect.c
diff options
context:
space:
mode:
Diffstat (limited to 'collect.c')
-rw-r--r--collect.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/collect.c b/collect.c
index a092555..dc009f1 100644
--- a/collect.c
+++ b/collect.c
@@ -60,14 +60,6 @@ void log(const struct STATE *state)
 	static mutex_t mutex = MUTEX_INITIALIZER;
 	while (mutex_lock(&mutex) < 0);
 	write(output_file, (const char *)state, sizeof(struct STATE));
-	/*
-	 * struct STATE starts with a 16-bit member flags,
-	 * followed by 64-bit registers, leaving 6 bytes in between.
-	 */
-	const int offset = (int) sizeof(uint32_t) - (int) sizeof(struct STATE);
-	lseek(output_file, offset, SEEK_END);
-	write(output_file, (const char *)&stack_size, sizeof(uint32_t));
-	lseek(output_file, 0, SEEK_END);
 	write(output_file, (const char *)state->rsp, stack_size);
 	fsync(output_file);
 	mutex_unlock(&mutex);