[PATCH] rsh.c unterminated string
authorH. Peter Anvin <hpa@zytor.com>
Fri, 23 Sep 2005 23:30:50 +0000 (16:30 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 24 Sep 2005 01:07:42 +0000 (18:07 -0700)
commite433b071fed7dbdf91437b489e261b86288542d8
treeb6050156d3535bf94688e6bfef14ec64f3016637
parent628cd5430fdf71a75c02af88ab7b557d29687db5
[PATCH] rsh.c unterminated string

The change I made to rsh.c would leave the string unterminated under
certain conditions, which unfortunately always applied!  This patch
fixes this.  For some reason this never bit on i386 or ppc, but bit me
on x86-64.

Fix situation where the buffer was not properly null-terminated.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
rsh.c