On Fri, 4 May 2018 15:03:48 +0530 Deepak wrote: DS> int ret; char str_pwd[4]=""; DS> . DS> case MODE_SET_COMMIT: DS> str_ pwd=*(requests->requestvb->val.string);
You are assigning a pointer to a character array. Just pass val.string to write() directly. Of course, this assumes you've properly validated it in an earlier stage. Robert ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders