From ddb12a1f37eaa44cc2478aacdac9fe5662468ffd Mon Sep 17 00:00:00 2001 From: MissValeska Date: Sun, 17 Aug 2014 08:53:03 -0700 Subject: [PATCH] fixed char * compilation error --- src/Ntk-Console/Netsukuku-Console.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Ntk-Console/Netsukuku-Console.c b/src/Ntk-Console/Netsukuku-Console.c index 5298cd4..8799b5e 100644 --- a/src/Ntk-Console/Netsukuku-Console.c +++ b/src/Ntk-Console/Netsukuku-Console.c @@ -59,7 +59,19 @@ int validity_check(char request) { } -void response_cleanup(char response) { +void response_conversion(char response) { + + char *response1; + + response1 = (char*)malloc(512); + + strcpy(response, response1); + + response_cleanup(response1); + +} + +void response_cleanup(char *response[BUFFER_LENGTH]) { char remove = 'a'; @@ -111,7 +123,7 @@ void ntkd_request(char request) { /* Increment the number of bytes that have been received so far */ bytesReceived += rc; } - response_cleanup(response); + response_conversion(response); } void opensocket(void) {