diff options
author | dawes <dawes> | 2000-11-07 22:09:49 +0000 |
---|---|---|
committer | dawes <dawes> | 2000-11-07 22:09:49 +0000 |
commit | f93d27aa9ffc3e26ebb937ccd8dfe3319315c70c (patch) | |
tree | 4c21a480eb5dcca70013481c2f9e0873fa09ce6b /xc/lib/xtrans | |
parent | 0aaf69d45917298d83ad7ddf346914232987aa70 (diff) |
Import of XFree86 4.0.1dX_4_0_1d
Diffstat (limited to 'xc/lib/xtrans')
-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])) |