diff options
author | Cy Schubert <cy@FreeBSD.org> | 2009-08-28 23:35:15 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2009-08-28 23:35:15 +0000 |
commit | e7a3c62a9fc7450d03e136dee2eac1edd8e10a1b (patch) | |
tree | 823cbc819c37f58f199297400197b76040b37e91 /security/krb5-appl/files/patch-ay | |
parent | Io_lib is a library of file reading and writing code to provide a (diff) |
Welcome the new Kerberos V 1.7.
PR: 138246
Notes
Notes:
svn path=/head/; revision=240488
Diffstat (limited to 'security/krb5-appl/files/patch-ay')
-rw-r--r-- | security/krb5-appl/files/patch-ay | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/security/krb5-appl/files/patch-ay b/security/krb5-appl/files/patch-ay index a6cb9ebbfd13..a2141724855b 100644 --- a/security/krb5-appl/files/patch-ay +++ b/security/krb5-appl/files/patch-ay @@ -1,8 +1,9 @@ --- appl/libpty/getpty.c.orig Wed Jan 9 14:28:37 2002 +++ appl/libpty/getpty.c Thu Jan 10 21:30:40 2002 -@@ -24,13 +24,26 @@ +@@ -24,14 +24,27 @@ #include "libpty.h" #include "pty-int.h" + #include "k5-platform.h" +#ifdef __FreeBSD__ +#define PTYCHARS1 "pqrsPQRS" @@ -35,7 +36,7 @@ } else { - for (cp = "pqrstuvwxyzPQRST";*cp; cp++) { + for (cp1 = PTYCHARS1; *cp1 != '\0'; cp1++) { - sprintf(slavebuf,"/dev/ptyXX"); + snprintf(slavebuf,sizeof(slavebuf),"/dev/ptyXX"); - slavebuf[sizeof("/dev/pty") - 1] = *cp; + slavebuf[sizeof("/dev/pty") - 1] = *cp1; slavebuf[sizeof("/dev/ptyp") - 1] = '0'; |