]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
imap: check `imap_sendf()` printf masks at compile-time
authorViktor Szakats <commit@vsz.me>
Tue, 13 Jan 2026 13:01:38 +0000 (14:01 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 13 Jan 2026 13:27:27 +0000 (14:27 +0100)
Closes #20287

lib/imap.c

index 76b78a12a84f202aa40134b1e60f411c4266e48b..7027c8ef054b4bf0f89939f9c57fdc6ce6e1078e 100644 (file)
@@ -154,6 +154,9 @@ struct ulbits {
  *
  * Designed to never block.
  */
+static CURLcode imap_sendf(struct Curl_easy *data,
+                           struct imap_conn *imapc,
+                           const char *fmt, ...) CURL_PRINTF(3, 0);
 static CURLcode imap_sendf(struct Curl_easy *data,
                            struct imap_conn *imapc,
                            const char *fmt, ...)