On Wed, 2005-06-08 at 16:56, Vance Shipley wrote:
> My read of RFC 2579 is that the "0d(" format specifier tells it to
> consume 0 octets from the OCTET STRING and display "(".

Hmmm... yes, I think you're probably correct.

> Am I all wet or is there a bug in there somewhere?

It looks very much like it.
In fact, it seems to be a bug that's explicitly introduced.
See snmplib/mib.c::sprint_realloc_octet_string():

        while (cp < ecp) {
            repeat = 1;
            if (*hint) {
                 width = 0;
                 // blah, blah, blah
                if (width == 0)
                    width = 1;
            }
            // blah, blah
        }


I haven't tested this, but I suspect that if you
delete the "if (width==0) width=1;" code, things
would work as you were expecting.

Dave



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to