reverse main bit of 'build fix: COMPRESS_OPTIONS'

I realized that I put opts[] inside a block that would go out of
scope while it was still needed.  When I went to fix that, I
discovered that it is already present where it ought to be.  My
'experimentation' should have defined COMPRESS_OPTIONS sooner so
that the outer scope would see it.

This doesn't revert the previous commit because a couple of comments
and a bit of reformatting from it are still useful.
This commit is contained in:
PatR
2023-02-18 18:03:21 -08:00
parent 91d6a79c11
commit 80842979aa

View File

@@ -1393,7 +1393,7 @@ docompress_file(const char *filename, boolean uncomp)
#ifdef COMPRESS_OPTIONS
{
/* we can't guarantee there's only one additional option, sigh */
char *opt, opts[sizeof COMPRESS_OPTIONS];
char *opt;
boolean inword = FALSE;
opt = strcpy(opts, COMPRESS_OPTIONS);