From 044e6a2a498a002c3a6b1c419600e7cf2a4f28cf Mon Sep 17 00:00:00 2001 From: ggn Date: Wed, 11 Nov 2015 15:43:34 +0200 Subject: [PATCH] Fix segfaulting when building .prg target on linux and cygwin. --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object.c b/object.c index d09388b..367f783 100644 --- a/object.c +++ b/object.c @@ -299,7 +299,7 @@ int WriteObject(int fd) if (t < ssize) t = ssize; - buf = malloc((t + HDRSIZE) + HDRSIZE); + buf = malloc(t + HDRSIZE) + HDRSIZE; /* * Build object file header -- 2.37.2