diff options
Diffstat (limited to 'xc/lib/xtrans/Xtrans.c')
-rw-r--r-- | xc/lib/xtrans/Xtrans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xc/lib/xtrans/Xtrans.c b/xc/lib/xtrans/Xtrans.c index 8959bf68d..4246e28af 100644 --- a/xc/lib/xtrans/Xtrans.c +++ b/xc/lib/xtrans/Xtrans.c @@ -22,7 +22,7 @@ other dealings in this Software without prior written authorization from The Open Group. */ -/* $XFree86: xc/lib/xtrans/Xtrans.c,v 3.22 1999/12/27 00:39:28 robin Exp $ */ +/* $XFree86: xc/lib/xtrans/Xtrans.c,v 3.23 2000/10/24 22:45:02 dawes Exp $ */ /* Copyright 1993, 1994 NCR Corporation - Dayton, Ohio, USA * @@ -172,7 +172,7 @@ TRANS(SelectTransport) (char *protocol) * a case insensitive match. */ - strncpy (protobuf, protocol, PROTOBUFSIZE); + strncpy (protobuf, protocol, PROTOBUFSIZE - 1); for (i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++) if (isupper (protobuf[i])) |