summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar snowdrop2004-01-06 08:05:43 +0000
committerGravatar snowdrop2004-01-06 08:05:43 +0000
commit62c6d2b165911e5bc96da38395e0fe2fb219fcc1 (patch)
tree628d2ad9a4ce3e1ac58cdfca3db055f329b4ebda
parent4b9b0651813509714a0fd3f6f60c31a5d2119d52 (diff)
downloadcsoap-62c6d2b165911e5bc96da38395e0fe2fb219fcc1.tar.gz
csoap-62c6d2b165911e5bc96da38395e0fe2fb219fcc1.tar.bz2
added null termination in callback function
-rw-r--r--nanohttp/nanohttp-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c
index 07c1d2d..de843ab 100644
--- a/nanohttp/nanohttp-client.c
+++ b/nanohttp/nanohttp-client.c
@@ -1,5 +1,5 @@
/******************************************************************
- * $Id: nanohttp-client.c,v 1.8 2004/01/05 10:42:15 snowdrop Exp $
+ * $Id: nanohttp-client.c,v 1.9 2004/01/06 08:05:43 snowdrop Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -691,7 +691,7 @@ void httpc_custom_res_callback(int counter, httpc_conn_t* conn,
res->body = (unsigned char*)realloc(res->body, res->bodysize + 1);
memcpy(&(res->body[res->bodysize-size]), buffer, size);
-
+ res->body[res->bodysize]='\0';
}