Commit 7770083d 7770083dba0448e0f6a6df48dcc1eafd704fe853 by Sergey Poznyakoff

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.
1 parent a6cdf8a5
......@@ -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
......
......@@ -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
......
......@@ -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
......