mirror of
				git://git.psyc.eu/libpsyc
				synced 2024-08-15 03:19:02 +00:00 
			
		
		
		
	parser: fix for binary body length
This commit is contained in:
		
							parent
							
								
									b294afd0a4
								
							
						
					
					
						commit
						a11c632e3d
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -384,6 +384,9 @@ psycParseRC psyc_parse (psycParseState* state, char* oper, | |||
| 				                          &(state->contentParsed)) == PSYC_PARSE_INCOMPLETE) | ||||
| 					return PSYC_PARSE_BODY_INCOMPLETE; | ||||
| 
 | ||||
| 				if (value->length) | ||||
| 					value->length--; // \n at the end is not part of the body
 | ||||
| 
 | ||||
| 				if (state->cursor >= state->buffer.length) | ||||
| 					return PSYC_PARSE_BODY; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue