]> diplodocus.org Git - nmh/blobdiff - uip/popsbr.c
base64.c: Don't out-of-bounds printf("%s", &encoded[-1]).
[nmh] / uip / popsbr.c
index ca6599e0352e3e69e54725ee2def76e31dc3738b..de9cafbd3ca02f09c5cb67cc4659658d799bc44d 100644 (file)
@@ -12,6 +12,7 @@
 
 #include <h/popsbr.h>
 #include <h/signals.h>
+#include "../sbr/base64.h"
 
 #define        TRM     "."
 
@@ -24,11 +25,12 @@ static netsec_context *nsc = NULL;
  * static prototypes
  */
 
-static int command(const char *, ...);
+static int command(const char *, ...) CHECK_PRINTF(1, 2);
 static int multiline(void);
 
-static int traverse (int (*)(void *, char *), void *closure, const char *, ...);
-static int vcommand(const char *, va_list);
+static int traverse(int (*)(void *, char *), void *closure,
+    const char *, ...) CHECK_PRINTF(3, 4);
+static int vcommand(const char *, va_list) CHECK_PRINTF(1, 0);
 static int pop_getline (char *, int, netsec_context *);
 static int pop_sasl_callback(enum sasl_message_type, unsigned const char *,
                             unsigned int, unsigned char **, unsigned int *,