]> diplodocus.org Git - nmh/blobdiff - sbr/netsec.c
mh.h: Move the gcc-4.3-conditional macro definitions.
[nmh] / sbr / netsec.c
index 3fcb2cf5752b3a6cb60710a6b3d36a9a5552fe3d..edb8d8c5ce9d183bb7db9684852632ea70167458 100644 (file)
@@ -12,6 +12,7 @@
 #include <h/oauth.h>
 #include <stdarg.h>
 #include <sys/select.h>
+#include "base64.h"
 
 #ifdef CYRUS_SASL
 #include <sasl/sasl.h>
@@ -473,7 +474,7 @@ retry:
      */
 
     if (count >= nsc->ns_inbufsize / 2) {
-       netsec_err(errstr, "Unable to find a line terminator after %d bytes",
+       netsec_err(errstr, "Unable to find a line terminator after %zu bytes",
                   count);
        return NULL;
     }
@@ -1217,7 +1218,7 @@ netsec_negotiate_sasl(netsec_context *nsc, const char *mechlist, char **errstr)
      * messages.
      */
 
-    memset(&secprops, 0, sizeof(secprops));
+    ZERO(&secprops);
     secprops.maxbufsize = SASL_MAXRECVBUF;
 
     /*