Browse Source

fixed char * compilation error

MissValeska 9 years ago
parent
commit
ddb12a1f37
1 changed files with 14 additions and 2 deletions
  1. 14
    2
      src/Ntk-Console/Netsukuku-Console.c

+ 14
- 2
src/Ntk-Console/Netsukuku-Console.c View File

@@ -59,7 +59,19 @@ int validity_check(char request) {
59 59
     
60 60
 }
61 61
 
62
-void response_cleanup(char response) {
62
+void response_conversion(char response) {
63
+    
64
+    char *response1;
65
+    
66
+    response1 = (char*)malloc(512);
67
+    
68
+    strcpy(response, response1);
69
+    
70
+    response_cleanup(response1);
71
+    
72
+}
73
+
74
+void response_cleanup(char *response[BUFFER_LENGTH]) {
63 75
     
64 76
     char remove = 'a';
65 77
 
@@ -111,7 +123,7 @@ void ntkd_request(char request) {
111 123
             /* Increment the number of bytes that have been received so far  */
112 124
             bytesReceived += rc;        
113 125
             }
114
-            response_cleanup(response);
126
+            response_conversion(response);
115 127
 }
116 128
 
117 129
 void opensocket(void) {

Loading…
Cancel
Save