Bruce> It's a one-liner in mib.c. It effects everybody.
Bruce> *(*buf + (*out_len)++) = '\n';
Bruce> Comment that line out and everything appears to be fine (at least on
Bruce> Solaris).
Bruce> When did this get added and why?
Wes>revision 5.77
Wes>date: 2004/10/13 00:04:27; author: rstory; state: Exp; lines: +2 -2
Wes>allow build_oid_noalloc to completely fill incoming buffer
Wes>========================================================================
=====
Nope, it's a lot older than that.
There was a line that said:
if (len > 16) { *buf++ = '\n'; *buf = 0; }
part of sprint_hexstring.
eg
http://cvs.sourceforge.net/viewcvs.py/net-snmp/net-snmp/snmplib/mib.c?rev=1.
195&view=markup
that I suspect has pretty much always been there.
First occurence of the code is here
http://cvs.sourceforge.net/viewcvs.py/net-snmp/net-snmp/snmplib/mib.c?rev=1.
197&view=markup
Revision: 1.197, Fri May 11 14:30:32 2001 UTC (3 years, 5 months ago) by
jbpn
and I suspect that was an import of patch code so it may have been there
forever as well.
Or am I missing something?
This communication is intended for the use of the recipient to which it is
addressed, and may contain confidential, personal and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take action
relying on it. Any communication received in error, or subsequent reply,
should be deleted or destroyed.
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders