mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-12 19:33:03 +00:00
Fixed parameter error, thanks to John O'Donnell
SVN revision: 2068
This commit is contained in:
parent
8ffec94905
commit
c16a9362a6
@ -2312,7 +2312,7 @@ int sendmail(LOGBOOK * lbs, char *smtp_host, char *from, char *to, char *text, c
|
|||||||
goto smtp_error;
|
goto smtp_error;
|
||||||
|
|
||||||
getcfg(lbs->name, "SMTP username", decoded, sizeof(decoded));
|
getcfg(lbs->name, "SMTP username", decoded, sizeof(decoded));
|
||||||
base64_encode((unsigned char *) decoded, (unsigned char *) str, sizeof(str));
|
base64_encode((unsigned char *) decoded, (unsigned char *) str, strsize);
|
||||||
strcat(str, "\r\n");
|
strcat(str, "\r\n");
|
||||||
send(s, str, strlen(str), 0);
|
send(s, str, strlen(str), 0);
|
||||||
if (verbose)
|
if (verbose)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user