summaryrefslogtreecommitdiffstats
path: root/imap/smap.c
diff options
context:
space:
mode:
authorSam Varshavchik2021-05-21 21:11:51 -0400
committerSam Varshavchik2021-05-21 21:11:51 -0400
commit142f42378608e593eb36ceb33895db99948427aa (patch)
treefc089285268a8fe3c8768cd7482fb50393f49354 /imap/smap.c
parent34b6dbb743654fdb6edccf101c4da7e671b7a92d (diff)
downloadcourier-libs-142f42378608e593eb36ceb33895db99948427aa.tar.bz2
-Wall and -Werror fixes
Diffstat (limited to 'imap/smap.c')
-rw-r--r--imap/smap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/imap/smap.c b/imap/smap.c
index 56690b3..bebf5d0 100644
--- a/imap/smap.c
+++ b/imap/smap.c
@@ -3245,6 +3245,7 @@ void smap()
while (*(p=getword(&ptr)))
{
char *q=strchr(p, '=');
+ char *comma=q;
if (q)
*q++=0;
@@ -3335,7 +3336,7 @@ void smap()
{
memset(&add_flags, 0,
sizeof(add_flags));
- *--q='=';
+ *(q=comma)='=';
parseflags(q, &add_flags);
if (strchr(rights_buf,
@@ -3370,7 +3371,7 @@ void smap()
write_error_exit(0);
}
- *--q='=';
+ *(q=comma)='=';
parsekeywords(q, &addKeywords);
okmsg="KEYWORDS set";
}