aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-18 10:10:32 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-18 10:10:32 +0100
commit05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4 (patch)
tree898185b02c06b47450c88fc8731cf508c056568d /transact.c
parente9c99cb0a353ed18bd7c6ea6e93ec2fea326bbb4 (diff)
downloadfetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.gz
fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.tar.bz2
fetchmail-05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4.zip
Fix lots of warnings, most around string literals...
...that were converted to char* when they should have been converted to const char *. Use braces for empty if/else statements.
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/transact.c b/transact.c
index 85d8b009..5201ceef 100644
--- a/transact.c
+++ b/transact.c
@@ -799,9 +799,10 @@ eoh:
*/
if ((already_has_return_path==FALSE) && !strncasecmp("Return-Path:", line, 12) && (cp = nxtaddr(line)))
{
+ char nulladdr[] = "<>";
already_has_return_path = TRUE;
if (cp[0]=='\0') /* nxtaddr() strips the brackets... */
- cp="<>";
+ cp=nulladdr;
strncpy(msgblk.return_path, cp, sizeof(msgblk.return_path));
msgblk.return_path[sizeof(msgblk.return_path)-1] = '\0';
if (!ctl->mda) {