pktdumper: Use av_strlcpy instead of strncpy
authorMartin Storsjö <martin@martin.st>
Thu, 30 Aug 2012 20:10:07 +0000 (23:10 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 30 Aug 2012 21:44:35 +0000 (00:44 +0300)
commitbcc44873d949bd817fa19fad368604cf73ccee78
treee8df451c1beea05e6c48e94cf270fafb5f3a3972
parent372de27df78b85976991bfe321a43b62b8505276
pktdumper: Use av_strlcpy instead of strncpy

This takes care of null-terminating the buffer if it is too small,
which wasn't handled properly before.

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