git-verify-pack: more careful path handling
commitae9c86f2b6c89a3a0991209dae51086f884959c0
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 10 Aug 2006 15:02:32 +0000 (10 17:02 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 10 Aug 2006 21:14:27 +0000 (10 14:14 -0700)
tree8ad2da20f1e1e64556a0d4a6d551cfbf08bfc3d7
parent6f05b57da8e82c471ea6765da67e813d496ed278
git-verify-pack: more careful path handling

Use strlcpy() to copy the filename into a buffer and complain if it
doesn't fit.  Also move the path buffer into verify_one_pack(); it is
used only there.  Now we can const'ify the first argument of this
function.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
verify-pack.c