Commit a6cdf8a5 a6cdf8a538d1e0a5155d975715cf6b48cb8e071a by Sergey Poznyakoff

(imap4d_search): Fix potential vulnerability: pass format string as a third argument to util_finish

1 parent bb509411
...@@ -196,7 +196,7 @@ imap4d_search (struct imap4d_command *command, char *arg) ...@@ -196,7 +196,7 @@ imap4d_search (struct imap4d_command *command, char *arg)
196 char buffer[64]; 196 char buffer[64];
197 197
198 rc = imap4d_search0 (arg, 0, buffer, sizeof buffer); 198 rc = imap4d_search0 (arg, 0, buffer, sizeof buffer);
199 return util_finish (command, rc, buffer); 199 return util_finish (command, rc, "%s", buffer);
200 } 200 }
201 201
202 int 202 int
......