cleanups: Fix potential bugs in connect.c
authorSerge E. Hallyn <serue@us.ibm.com>
Mon, 17 Apr 2006 15:14:47 +0000 (10:14 -0500)
committerJunio C Hamano <junkio@cox.net>
Mon, 17 Apr 2006 22:05:33 +0000 (15:05 -0700)
commitda2a95b2a86e8b140d6c5413ea4307e395884135
treef0b229d32e6b9028cdb2f7b2655183ccc402de1b
parent6feba7cb744d5a19472ea0bf5b337ad8a32acf80
cleanups: Fix potential bugs in connect.c

The strncmp for ACK was ACK does not include the final space.
Presumably either we should either remove the trailing space,
or compare 4 chars (as this patch does).

'path' is sometimes strdup'ed, but never freed.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
connect.c