mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 10:52:26 +01:00 
			
		
		
		
	Fixed parsing the received lines
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		@@ -470,7 +470,7 @@ int parse_line(char *buf, struct parser_state *state, struct session_data *sdata
 | 
			
		||||
         fill_attachment_name_buf(state, buf);
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      if(state->received_header == 1 && state->message_state == MSG_RECEIVED){
 | 
			
		||||
      if(state->received_header == 1 && state->message_state == MSG_RECEIVED && strlen(state->receivedbuf) + len < sizeof(state->receivedbuf)){
 | 
			
		||||
         memcpy(&(state->receivedbuf[strlen(state->receivedbuf)]), buf, len);
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user