aboutsummaryrefslogtreecommitdiffstats
path: root/smtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'smtp.c')
-rw-r--r--smtp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/smtp.c b/smtp.c
index fd987950..2595a57e 100644
--- a/smtp.c
+++ b/smtp.c
@@ -232,13 +232,13 @@ int SMTP_from(int sock, const char *from, const char *opts)
int ok;
char buf[MSGBUFSIZE];
- if (strchr(from, '<'))
+ if (from[0]=='<')
#ifdef HAVE_SNPRINTF
snprintf(buf, sizeof(buf),
#else
sprintf(buf,
#endif /* HAVE_SNPRINTF */
- "MAIL FROM: %s", from);
+ "MAIL FROM:%s", from);
else
#ifdef HAVE_SNPRINTF
snprintf(buf, sizeof(buf),