diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-03-28 09:33:03 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2010-03-28 09:33:03 +0000 |
commit | 1c787d6c2fd1afe065cff9e207f3eb5e1d761115 (patch) | |
tree | efd71293dad316006e987466d6b8f89df1d3012a /app/xdm/streams.c | |
parent | 13e78ac89384dac8f940479f3a13bfbb6b01b6f8 (diff) |
Update to xdm 1.1.9
Diffstat (limited to 'app/xdm/streams.c')
-rw-r--r-- | app/xdm/streams.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/app/xdm/streams.c b/app/xdm/streams.c index c09ce6e60..c4cb2cac7 100644 --- a/app/xdm/streams.c +++ b/app/xdm/streams.c @@ -1,4 +1,3 @@ -/* $Xorg: streams.c,v 1.4 2001/02/09 02:05:40 xorgcvs Exp $ */ /* Copyright 1988, 1998 The Open Group @@ -26,7 +25,6 @@ other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/programs/xdm/streams.c,v 3.7 2003/07/09 15:27:39 tsi Exp $ */ /* * xdm - display manager daemon @@ -39,12 +37,12 @@ from The Open Group. #include "dm_error.h" #ifdef XDMCP -#ifdef STREAMSCONN +# ifdef STREAMSCONN -#include <fcntl.h> -#include <tiuser.h> -#include <netconfig.h> -#include <netdir.h> +# include <fcntl.h> +# include <tiuser.h> +# include <netconfig.h> +# include <netdir.h> extern int xdmcpFd; extern int chooserFd; @@ -84,7 +82,7 @@ CreateWellKnownSockets (void) RegisterCloseOnFork (xdmcpFd); service.h_host = HOST_SELF; - sprintf(bindbuf, "%d", request_port); + snprintf(bindbuf, sizeof(bindbuf), "%d", request_port); service.h_serv = bindbuf; netdir_getbyname(nconf, &service, &servaddrs); freenetconfigent(nconf); @@ -165,5 +163,5 @@ void ProcessListenSockets (fd_set *readmask) return; } -#endif /* STREAMSCONN */ +# endif /* STREAMSCONN */ #endif /* XDMCP */ |