]> diplodocus.org Git - nmh/blobdiff - uip/mhshowsbr.c
Fix the race condition with fakesmtp so it works without needing retries.
[nmh] / uip / mhshowsbr.c
index 99db9f83a418cfca89523af7f94b0149a6d2811f..550669aa0e66d3d8bbfa2b1ae04a257961d6e687 100644 (file)
@@ -980,7 +980,7 @@ raw:
     }
 
     if (buflen <= 0 ||
-        (ct->c_termproc && (size_t) buflen <= strlen(ct->c_termproc))) {
+        (ct->c_termproc && buflen <= (ssize_t) strlen(ct->c_termproc))) {
        /* content_error would provide a more useful error message
         * here, except that if we got overrun, it probably would
         * too.