From: Howard Chu Date: Fri, 9 Jul 2004 10:19:20 +0000 (+0000) Subject: Fix 't' tag option X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24b7f5c42cc546df214ae88111a2c442566aaa74;p=openldap Fix 't' tag option --- diff --git a/libraries/liblber/etest.c b/libraries/liblber/etest.c index 33184ecc5c..3731a24a46 100644 --- a/libraries/liblber/etest.c +++ b/libraries/liblber/etest.c @@ -64,6 +64,7 @@ int main( int argc, char **argv ) { char *s; + int tag; int fd, rc; BerElement *ber; @@ -143,10 +144,14 @@ main( int argc, char **argv ) break; case 's': /* string */ - case 't': /* tag for the next element */ buf = getbuf(); rc = ber_printf( ber, fmt, buf ); break; + case 't': /* tag for the next element */ + buf = getbuf(); + tag = atoi(buf); + rc = ber_printf( ber, fmt, tag ); + break; default: fprintf( stderr, "encode: unknown fmt %c\n", *fmt );