aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 6a897bceb..33aa164af 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -607,7 +607,7 @@ const char *__dynamic_da_name = "GnuPG Heap";
const char *
strusage( int level )
{
- static char *digests, *pubkeys, *ciphers;
+ static char *digests, *pubkeys, *ciphers, *zips;
const char *p;
switch( level ) {
case 11: p = "gpg (GnuPG)";
@@ -653,13 +653,12 @@ strusage( int level )
p = digests;
break;
case 37:
- if(opt.verbose)
- p = "Compress: Uncompressed (Z0), ZIP (Z1), ZLIB (Z2)\n";
- else
- p = "Compress: Uncompressed, ZIP, ZLIB\n";
+ if( !zips )
+ zips = build_list("Compress: ",'Z',compress_algo_to_string,
+ check_compress_algo);
+ p = zips;
break;
-
default: p = default_strusage(level);
}
return p;
@@ -678,11 +677,11 @@ build_list( const char *text, char letter,
if( maybe_setuid )
secmem_init( 0 ); /* drop setuid */
- for(i=1; i <= 110; i++ )
+ for(i=0; i <= 110; i++ )
if( !chkf(i) && (s=mapf(i)) )
n += strlen(s) + 7 + 2;
list = m_alloc( 21 + n ); *list = 0;
- for(p=NULL, i=1; i <= 110; i++ ) {
+ for(p=NULL, i=0; i <= 110; i++ ) {
if( !chkf(i) && (s=mapf(i)) ) {
if( !p ) {
p = stpcpy( list, text );