From 80842979aa86256fcd264caaf2ff54289c52adeb Mon Sep 17 00:00:00 2001 From: PatR Date: Sat, 18 Feb 2023 18:03:21 -0800 Subject: [PATCH] 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. --- src/files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files.c b/src/files.c index 995a22726..b3bb6e78b 100644 --- a/src/files.c +++ b/src/files.c @@ -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);