Dave, You were right on the money, your suggestion worked!
don't quite understand the difference, but it works, and that's all that matters :) very much appreciated, Paul Davies > > On Thu, 2005-11-03 at 09:52 +0000, Paul Davies wrote: > > When I use read_config_store_data( ASN_OCTET_STR, ........ > ) to store > > a table column entry to a persistent conf file I get a "run fault". > > > > unsigned char myString[255]; > > long myStringLen; > > > > cptr = read_config_store_data (ASN_OCTET_STR, cptr, > &myString, (size_t*)(&myStringLen) ); > > > anyone seen anything similar or know what is going wrong? > > That certainly *looks* as if it should work. > I seem to remember running into the same problem as part of > implementing the config storage for the DisMan re-writes. > > The workaround I came up with was to introduce an extra pointer > variable, initialised to the relevant string, and use that in > the read_config_store_data call: > > unsigned char myString[255], *cp; > long myStringLen; > > cp = myString; > cptr = read_config_store_data (ASN_OCTET_STR, cptr, &cp, > (size_t*)(&myStringLen) ); > > > Try that. > > Dave > The information contained within this e-mail and any files attached to this e-mail is confidential and in addition may include commercially sensitive information. The contents of this e-mail are for the intended recipient only and therefore if you wish to disclose the information contained within this e-mail or attached files, please contact the sender prior to any such disclosure. If you are not the intended recipient, any disclosure, copying or distribution is prohibited. Please also contact the sender and inform them of the error and delete the e-mail, including any attached files from your system. www.eadsdsuk.com ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.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
