Den 20-08-2014 kl. 02:57 skrev L'oiseau de mer:
> case MODE_SET_ACTION:
> strncpy(A, requests->requestvb->val.string,
> sizeof(A));
> A[sizeof(A)-1]='\0';
A SNMP string is not a 0-terminated C string. You must respect (and
save) the length of th
Hi, everyone
I am a snmp newbie developer, and want to write some new OIDs.
And generate sample code from mib2c MY-DEFINE-MIB file.
But when i develop this part, i meet a big problem:
when set string, requests->requestvb->val.string always remain some old
data, i don't know how to empty it.
Ex:
sn