pktdumper: Use sizeof(variable) instead of the direct buffer length
authorMartin Storsjö <martin@martin.st>
Thu, 30 Aug 2012 20:08:06 +0000 (23:08 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 30 Aug 2012 21:44:21 +0000 (00:44 +0300)
commit372de27df78b85976991bfe321a43b62b8505276
tree69fd88f12ea4ec5bd15080b31452d8b2d541e86e
parentec36aa69448f20a78d8c4588265022e0b2272ab5
pktdumper: Use sizeof(variable) instead of the direct buffer length

Also change the snprintf size to use the full buffer, since
snprintf always null-terminates the buffer.

Signed-off-by: Martin Storsjö <martin@martin.st>
tools/pktdumper.c