Further fixes for searching
Signed-off-by: tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
parent
238d7d187c
commit
9ee2dd8b75
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ char* get_value_from_key(size_t* val_len, size_t key_offset,
|
|||
colon++;
|
||||
char* val = NULL;
|
||||
for(size_t i = colon; i < (mail->header_len-1); i++){
|
||||
if(isalnum(mail->message[i])){
|
||||
if(isalnum(mail->message[i]) && val == NULL){
|
||||
val = &mail->message[i];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue