]> diplodocus.org Git - nmh/blobdiff - uip/popsbr.c
test/inc/test-eom-align: Fix tests; they've never worked.
[nmh] / uip / popsbr.c
index 591832d2179079c36562a496b5c6ef0f3a49a3f1..0d655b84613eb8d0d672829e5115f11c9e56d066 100644 (file)
@@ -730,11 +730,11 @@ pop_getline (char *s, int n, netsec_context *ns)
      *
      * We get a length back from netsec_readline, but the rest of the POP
      * code doesn't handle it; the assumptions are that everything from
-     * the network can be respresented as C strings.  That should get fixed
+     * the network can be represented as C strings.  That should get fixed
      * someday.
      */
 
-    destlen = len < ((size_t) (n - 1)) ? len : (size_t) (n - 1);
+    destlen = min(len, (size_t)(n - 1));
 
     memcpy(s, p, destlen);
     s[destlen] = '\0';