--- XFree86-4.0.2/xc/programs/xdm/xdmcp.c~ Thu Dec 21 19:46:57 2000 +++ XFree86-4.0.2/xc/programs/xdm/xdmcp.c Thu Dec 21 19:47:25 2000 @@ -1128,7 +1128,7 @@ XdmcpHeader header; ARRAY8 status; - sprintf (buf, "Session %ld failed for display %.100s: %.100s", + snprintf (buf, sizeof(buf), "Session %ld failed for display %.100s: %.100s", (long) sessionID, name, reason); Debug ("Send failed %ld %s\n", (long) sessionID, buf); status.length = strlen (buf);