mirror of git://sourceware.org/git/glibc.git
(_nss_nis_getpublickey): Fix off by one error.
This commit is contained in:
parent
20d511e0c5
commit
034a1ee59f
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1996,1997,1998,1999,2001,2002 Free Software Foundation, Inc.
|
/* Copyright (C) 1996-1999,2001,2002,2005 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Thorsten Kukuk <kukuk@suse.de>, 1996.
|
Contributed by Thorsten Kukuk <kukuk@suse.de>, 1996.
|
||||||
|
|
||||||
|
|
@ -120,7 +120,7 @@ _nss_nis_getsecretkey (const char *netname, char *skey, char *passwd,
|
||||||
|
|
||||||
++p;
|
++p;
|
||||||
strncpy (buf, p, 2 * (HEXKEYBYTES + 1));
|
strncpy (buf, p, 2 * (HEXKEYBYTES + 1));
|
||||||
buf[2 * (HEXKEYBYTES + 1)] = '\0';
|
buf[2 * HEXKEYBYTES + 1] = '\0';
|
||||||
if (!xdecrypt (buf, passwd))
|
if (!xdecrypt (buf, passwd))
|
||||||
return NSS_STATUS_SUCCESS;
|
return NSS_STATUS_SUCCESS;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue