author | Serge E. Hallyn <serue@us.ibm.com> | |
Mon, 17 Apr 2006 15:14:47 +0000 (10:14 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 17 Apr 2006 22:05:33 +0000 (15:05 -0700) | ||
commit | da2a95b2a86e8b140d6c5413ea4307e395884135 | |
tree | f0b229d32e6b9028cdb2f7b2655183ccc402de1b | tree | snapshot |
parent | 6feba7cb744d5a19472ea0bf5b337ad8a32acf80 | commit | diff |
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>
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 | diff | blob | history |