aboutsummaryrefslogtreecommitdiffstats
path: root/globals.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-06-26 00:13:21 +0000
committerGuy Harris <guy@alum.mit.edu>2000-06-26 00:13:21 +0000
commit85a7f56ac0d6f6488986cb8c0139874349e1c070 (patch)
tree052abc2efbb7e030576ebc919b1aca26c4ef62f0 /globals.h
parent5a8b587fc6d05b62f8e7bd47f24040529f95a228 (diff)
Rename "format_value()" to "format_var()", and have it dynamically
allocate the buffer into which it formats the variable value, and return that value. This 1) makes it more closely resemble the formatting routine in the libsmi-based "packet-snmp.c" under development; 2) makes it less likely to overrun the buffer (we can't be certain how long the string "sprint_value()" generates will be, but we can make a reasonable guess as to the maximum size based on the type and size of the object we're formatting). When *not* using "-lsnmp", dynamically allocate the buffers into which we format octet strings and OID values, based on the size of the object we're formatting, so that we don't overrun the buffer. svn path=/trunk/; revision=2091
Diffstat (limited to 'globals.h')
0 files changed, 0 insertions, 0 deletions