diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-09-09 07:32:05 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-09-09 07:32:05 +0000 |
commit | 7770083dba0448e0f6a6df48dcc1eafd704fe853 (patch) | |
tree | 6c67bb5c7fabccaf6ac77974ed56116b1c4e6dbf /imap4d | |
parent | a6cdf8a538d1e0a5155d975715cf6b48cb8e071a (diff) | |
download | mailutils-7770083dba0448e0f6a6df48dcc1eafd704fe853.tar.gz mailutils-7770083dba0448e0f6a6df48dcc1eafd704fe853.tar.bz2 |
Always pass format string as a third argument to util_finish. Although this is not
necessary, since 'buffer' is guaranteed to contain a normal error string, without
format specifiers, yet this will simplify maintainence.
Diffstat (limited to 'imap4d')
-rw-r--r-- | imap4d/copy.c | 2 | ||||
-rw-r--r-- | imap4d/fetch.c | 2 | ||||
-rw-r--r-- | imap4d/store.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/imap4d/copy.c b/imap4d/copy.c index c4932fb24..77434d418 100644 --- a/imap4d/copy.c +++ b/imap4d/copy.c @@ -37,7 +37,7 @@ imap4d_copy (struct imap4d_command *command, char *arg) state = new_state; return util_send ("%s %s\r\n", command->tag, buffer); } - return util_finish (command, rc, buffer); + return util_finish (command, rc, "%s", buffer); } int diff --git a/imap4d/fetch.c b/imap4d/fetch.c index 7298284a0..a13a9c194 100644 --- a/imap4d/fetch.c +++ b/imap4d/fetch.c @@ -128,7 +128,7 @@ imap4d_fetch (struct imap4d_command *command, char *arg) char buffer[64]; rc = imap4d_fetch0 (arg, 0, buffer, sizeof buffer); - return util_finish (command, rc, buffer); + return util_finish (command, rc, "%s", buffer); } /* Where the real implementation is. It is here since UID command also diff --git a/imap4d/store.c b/imap4d/store.c index 63c79bf40..aa14314b8 100644 --- a/imap4d/store.c +++ b/imap4d/store.c @@ -29,7 +29,7 @@ imap4d_store (struct imap4d_command *command, char *arg) char buffer[64]; rc = imap4d_store0 (arg, 0, buffer, sizeof buffer); - return util_finish (command, rc, buffer); + return util_finish (command, rc, "%s", buffer); } int |