wmail: skip leading white-space in From: headers.

This commit is contained in:
Jeremy Sowden 2019-05-27 22:52:13 +01:00 committed by Carlos R. Mafra
parent 9158bb68f3
commit a3ef21b122

View file

@ -34,6 +34,7 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// includes // includes
#include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
@ -936,7 +937,8 @@ char *ParseFromField( char *buf )
continue; continue;
} // else do the default action } // else do the default action
default: default:
fullName[ strlen( fullName ) ] = *c; if( fullName[0] != '\0' || !isspace ( *c ))
fullName[ strlen( fullName ) ] = *c;
} }
continue; continue;