Chris> I'm trying to use read_config_read_octet_string() (in 5.1.1) Chris> and I'm not getting the results I expect. Robert> No, the function is inconsistent in its use of the len parameter.
I'm not sure I'd describe this behaviour as "inconsistent". It's not uncommon to use the same parameter in both directions, so passing the buffer length in, and the actual length back is not unreasonable. I'd say that the basic problem here is that the behaviour is not documented properly. (Like so much else!) I'd suggest that: Robert> adding one line before the read will fix your problem: Robert> len = sizeof(value); this is the correct approach, and we just need to document it. Dave ------------------------------------------------------- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php _______________________________________________ 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