From: ggn Date: Wed, 11 Nov 2015 13:43:34 +0000 (+0200) Subject: Fix segfaulting when building .prg target on linux and cygwin. X-Git-Tag: v2.1.0~181 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=commitdiff_plain;h=044e6a2a498a002c3a6b1c419600e7cf2a4f28cf;ds=sidebyside Fix segfaulting when building .prg target on linux and cygwin. --- 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