X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-text-utils.c;h=3c633851d08dffe10422afb076eb052e78c713a6;hp=f01e706c83f09c5894fc921e9781a51d9fa4f739;hb=addd1287234fa35a521c56e6d6472de35739b3a2;hpb=5558b39bb31d52e6ced2ac0116e017e4493b0c57 diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index f01e706..3c63385 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -1145,7 +1145,7 @@ modest_text_utils_validate_email_address (const gchar *email_address, const gcha return FALSE; do { if (*c == '.') { - if (c == domain || *(c - 1) == '.') + if (c == domain || *(c - 1) == '.' || *(c + 1) == '\0') return FALSE; count++; }