Wireshark-commits: [Wireshark-commits] master b7dc773: Assorted cleanups.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=b7dc77312720bb1bfa3698f3b48e21c991c49632
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
b7dc773 by Guy Harris (guy@xxxxxxxxxxxx):
Assorted cleanups.
Fix indentation.
Just directly assign values to elements in the packet buffer; no need to
convert them to numbers and note the value as a comment.
Give more detail in the comment for null-terminating buffers. Terminate
packet_buf[] once we're finished reading into it, to make it a bit
clearer what's being done.
Make the magic number buffer 513 bytes, so we have 512 bytes plus a
terminating null.
Change-Id: Ie182d93393cc55835b24075e908393c386c85c24
Reviewed-on: https://code.wireshark.org/review/13250
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
Actions performed:
from 140aad0 nettrace_3gpp_32_423 Protect from buffer overun.
adds b7dc773 Assorted cleanups.
Summary of changes:
wiretap/nettrace_3gpp_32_423.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)