Skip to content

Commit

Permalink
Merge pull request #65 from helsinki-systems/fix/wformat
Browse files Browse the repository at this point in the history
fix(smtp): Fix -Wformat
  • Loading branch information
WoodySlum committed Feb 28, 2023
2 parents 0751a2f + 9540c11 commit 6adfadd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sope-mime/NGMail/NGSmtpClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ - (BOOL)mailFrom:(id)_sender {
{
NSLog(@"SMTP(MAIL FROM) error: %@", [reply text]);
[NSException raise: @"SMTPException"
format: [reply text]];
format: @"%@",
[reply text]];
}
return NO;
}
Expand All @@ -752,7 +753,8 @@ - (BOOL)recipientTo:(id)_receiver {
{
NSLog(@"SMTP(RCPT TO) error: %@", [reply text]);
[NSException raise: @"SMTPException"
format: [reply text]];
format: @"%@",
[reply text]];
}
return NO;
}
Expand Down Expand Up @@ -846,7 +848,8 @@ - (BOOL)sendData:(NSData *)_data {
{
NSLog(@"SMTP(DATA) error: %@", [reply text]);
[NSException raise: @"SMTPException"
format: [reply text]];
format: @"%@",
[reply text]];
}
return NO;
}
Expand Down

0 comments on commit 6adfadd

Please sign in to comment.