File format_fix.patch of Package tpm2.0-abrmd
Index: tpm2-abrmd-2.0.1/src/util.c
===================================================================
--- tpm2-abrmd-2.0.1.orig/src/util.c
+++ tpm2-abrmd-2.0.1/src/util.c
@@ -100,7 +100,7 @@ write_all (GOutputStream *ostream,
g_debug ("writing %zu bytes starting at 0x%" PRIxPTR " to socket 0x%"
PRIxPTR,
size - written_total,
- (uintptr_t)buf + written_total,
+ (uintptr_t)(buf + written_total),
(uintptr_t)socket);
written = g_output_stream_write (ostream,
(const gchar*)&buf [written_total],