From f9613325f1e981c918e63020dee2a843b3c8ab75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Wed, 5 Oct 2011 00:42:27 +0200 Subject: http: parse the response from the server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Martín Nieto --- src/netops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/netops.c') diff --git a/src/netops.c b/src/netops.c index da242795b..5d17e1769 100644 --- a/src/netops.c +++ b/src/netops.c @@ -157,9 +157,9 @@ int gitno_send_chunk_size(int s, size_t len) char str[8] = {0}; int ret; - ret = p_snprintf(str, sizeof(str), "%zx", len); + ret = p_snprintf(str, sizeof(str), "%zx\r\n", len); if (ret >= (int) sizeof(str)) { - return git__throw(GIT_ESHORTBUFFER, "Your number is too fucking big"); + return git__throw(GIT_ESHORTBUFFER, "Your number is too big"); } return gitno_send(s, str, ret, 0 /* TODO: MSG_MORE */); -- cgit v1.2.1