On Tue, 28 Sep 2004 10:56:33 +0100 Dave wrote:
DS> Chris> I'm trying to use read_config_read_octet_string() (in 5.1.1)
DS> Chris> and I'm not getting the results I expect.
DS>  
DS> Robert> No, the function is inconsistent in its use of the len parameter.
DS> 
DS> I'm not sure I'd describe this behaviour as "inconsistent".
DS> It's not uncommon to use the same parameter in both directions,
DS> so passing the buffer length in, and the actual length back is
DS> not unreasonable.

I quite agree. However, this function doesn't do that. The length in is only
used if the string doesn't start with "0x" and no buffer is passed in.

-- 
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>  
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to