return-truncated-reason-from-krb-udp-interface-20010305
authorDerrick Brashear <shadow@dementia.org>
Mon, 5 Mar 2001 16:26:04 +0000 (16:26 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 5 Mar 2001 16:26:04 +0000 (16:26 +0000)
The remainder of the patch the snprintf support was intended to be used for

src/kauth/krb_udp.c

index 78c28d6..d8f8db2 100644 (file)
@@ -559,7 +559,6 @@ static err_packet (ksoc, pkt, code, reason)
     char  buf[256];
 
     if (reason == 0) reason = "";
-    else if (strlen(reason) + 20 > sizeof(buf)) reason = "reason too long";
     snprintf (buf, 255, "code = %d: %s", code, reason);
 
     if (krb_udp_debug) {