Reading SNMP Community Strings
Posted: Fri Apr 01, 2016 2:39 pm
I'm trying to read SNMP community strings. But the function I wrote crashes.(MOD5441X)
What am I doing wrong?
v2.7.5 NNDK.
Code: Select all
char *GetReadOnlyCommunityString( char *p )
{
const SysInfo *pInfo = GetSysInfo();
strncpy( p, (char *)pInfo->ReadCommunity, 40 );
*(p+40) = NUL;
return p;
}
v2.7.5 NNDK.