On 19/09/06, Toth, Gregory S <[EMAIL PROTECTED]> wrote:
> char this_index[SPRINT_MAX_LEN] = "title1";
> snmp_set_var_value(vptr, (u_char *) &this_index ,
> sizeof(this_index) );
try
snmp_set_var_value( vptr, this_index, strlen(this_index));
The size of 'this_index' is SPRINT_MAX_LEN, but the index string
doesn't use all of this buffer. And 'this_index' is already a pointer
to the value, so you don't need to take the address again.
Dave
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders