|  | @@ -219,6 +219,7 @@ boolean receive_client(Client* cli) {
 | 
	
		
			
				|  |  |          addserror("Impossible de recevoire les données du client");
 | 
	
		
			
				|  |  |          return false;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +    printf("Reception Client %d : %s\n", cli->id, buffer);
 | 
	
		
			
				|  |  |      //Recup la methode
 | 
	
		
			
				|  |  |      if (buffer[0] == 'P') {
 | 
	
		
			
				|  |  |          pos = 5;
 | 
	
	
		
			
				|  | @@ -244,8 +245,11 @@ boolean receive_client(Client* cli) {
 | 
	
		
			
				|  |  |          send_err_client(cli->id, EREQUEST);
 | 
	
		
			
				|  |  |          return false;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | -    ressource = malloc(sizeof (char) * compteur);
 | 
	
		
			
				|  |  | +    ressource = malloc(sizeof (char) * (compteur + 1));
 | 
	
		
			
				|  |  | +    memset(ressource, 0, compteur + 1);
 | 
	
		
			
				|  |  |      strncpy(ressource, reader, compteur);
 | 
	
		
			
				|  |  | +    printf("Ressource : %s\n", ressource);
 | 
	
		
			
				|  |  | +    fflush(stdout);
 | 
	
		
			
				|  |  |      //Recup param JSON
 | 
	
		
			
				|  |  |      if (method == POST) {
 | 
	
		
			
				|  |  |          if (buffer[pos] == '\0') {
 |