Niels Baggesen <n...@users.sourceforge.net> writes: >> - It's considered a good programming practice to terminate strings >> properly that are announced as '\0'-terminated. > > SNMP OCTET STRINGS are not C strings, they are completely different > beasts. They should not be confused.
Yes, but there is one thing to consider: most people end up taking those octet strings and printing them :-) [so we frequently null-terminate most octet strings because most end-users expect it for simple strings, though it makes less sense for binary strings that may contain \0s themselves] -- Wes Hardaker Please mail all replies to net-snmp-coders@lists.sourceforge.net ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders