git.c: two fixes, gitsetenv type and off-by-one error.
authorJunio C Hamano <junkio@cox.net>
Sun, 4 Dec 2005 22:59:58 +0000 (14:59 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 4 Dec 2005 22:59:58 +0000 (14:59 -0800)
gitsetenv as implemented in compat/setenv.c takes two const char*
and int; match that.

Also fix an incorrect attempt in prepend_to_path() to
NUL-terminate the string which stuffed the NUL character at one
past the end of allocation, and was not needed to begin with (we
copy the old_path string including the NUL which terminates it).

Signed-off-by: Junio C Hamano <junkio@cox.net>

No differences found