diff options
author | Rob Landley <rob@landley.net> | 2018-11-19 10:54:26 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-11-19 10:54:26 -0600 |
commit | 3d4219014ae5f5a6553423994ff5ccd1d490a6fc (patch) | |
tree | 1be5bf5d1c054d8f385a1d9dd109513641b52f4a /toys/pending/test.c | |
parent | 503e6362290d56bce0ed71f8164f24e25108bbbc (diff) | |
download | toybox-3d4219014ae5f5a6553423994ff5ccd1d490a6fc.tar.gz |
Eduardas Meile reported "The -Werror=format-security flag is applied by
default in Yocto 2.6 Thud release" and identified several error_exit() and
friends that should use the _raw versions.
Diffstat (limited to 'toys/pending/test.c')
-rw-r--r-- | toys/pending/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/pending/test.c b/toys/pending/test.c index e64ebf14..d887fc9f 100644 --- a/toys/pending/test.c +++ b/toys/pending/test.c @@ -149,7 +149,7 @@ int test_sub(int optb, int opte) if (optb + i == opte || !strcmp("-a", toys.optargs[optb + i]) || !strcmp("-o", toys.optargs[optb + i])) break; } - if (i == 4) error_exit(err_syntax); + if (i == 4) error_exit_raw(err_syntax); expr = not ^ test_basic(optb, optb + i); optb += i; } @@ -166,7 +166,7 @@ int test_sub(int optb, int opte) and = and && expr; optb++; } - else error_exit(err_syntax); + else error_exit_raw(err_syntax); } } |