Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jun 1996 01:03:07 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@GndRsh.aac.dev.com>
To:        wpaul@freefall.freebsd.org (Bill Paul)
Cc:        CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-gnu@freefall.freebsd.org
Subject:   Re: cvs commit:  src/gnu/usr.bin/ld ld.c
Message-ID:  <199606080803.BAA13079@GndRsh.aac.dev.com>
In-Reply-To: <199606080452.VAA06824@freefall.freebsd.org> from Bill Paul at "Jun 7, 96 09:52:59 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> wpaul       96/06/07 21:52:58
> 
>   Modified:    gnu/usr.bin/ld  ld.c
>   Log:
>   Aw c'mon. I'm being driven mad by plenty of other things. I don't
>   need this.
>   
>   Consider the following code:
>   

More ``complete'' fix, use the compiler to do the right thing for you...:

#define	TMP_EXTENSION	".tmp"
...

	case 'O':
		output_filename = malloc(strlen(arg)+sizeof(TMP_EXTENSION));
		strcpy(output_filename, arg);
		strcat(output_filename, TMP_EXTENSION);
		real_output_filename = arg;
		return;


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                 Reliable computers for FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606080803.BAA13079>