diff options
Diffstat (limited to 'os/xdmcp.c')
-rw-r--r-- | os/xdmcp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/os/xdmcp.c b/os/xdmcp.c index c5204adfb..99616d94b 100644 --- a/os/xdmcp.c +++ b/os/xdmcp.c @@ -1409,11 +1409,8 @@ recv_alive_msg(unsigned length) static void XdmcpFatal(const char *type, ARRAY8Ptr status) { - char *text = malloc(status->length + 1); - strncpy(text, status->data, status->length); - text[status->length] = 0; - FatalError("XDMCP fatal error: %s %s\n", type, text); - free(text); + FatalError("XDMCP fatal error: %s %*.*s\n", type, + status->length, status->length, status->data); } static void |