summaryrefslogtreecommitdiff
path: root/security/krb5-17/files/patch-lib-kadm5-logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/krb5-17/files/patch-lib-kadm5-logger.c')
-rw-r--r--security/krb5-17/files/patch-lib-kadm5-logger.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/security/krb5-17/files/patch-lib-kadm5-logger.c b/security/krb5-17/files/patch-lib-kadm5-logger.c
deleted file mode 100644
index f553a359e4a2..000000000000
--- a/security/krb5-17/files/patch-lib-kadm5-logger.c
+++ /dev/null
@@ -1,33 +0,0 @@
---- lib/kadm5/logger.c.orig Mon Jun 19 16:33:36 2006
-+++ lib/kadm5/logger.c Wed Apr 4 13:53:04 2007
-@@ -45,7 +45,7 @@
- #include <varargs.h>
- #endif /* HAVE_STDARG_H */
-
--#define KRB5_KLOG_MAX_ERRMSG_SIZE 1024
-+#define KRB5_KLOG_MAX_ERRMSG_SIZE 2048
- #ifndef MAXHOSTNAMELEN
- #define MAXHOSTNAMELEN 256
- #endif /* MAXHOSTNAMELEN */
-@@ -261,7 +261,9 @@
- #endif /* HAVE_SYSLOG */
-
- /* Now format the actual message */
--#if HAVE_VSPRINTF
-+#if HAVE_VSNPRINTF
-+ vsnprintf(cp, sizeof(outbuf) - (cp - outbuf), actual_format, ap);
-+#elif HAVE_VSPRINTF
- vsprintf(cp, actual_format, ap);
- #else /* HAVE_VSPRINTF */
- sprintf(cp, actual_format, ((int *) ap)[0], ((int *) ap)[1],
-@@ -850,7 +852,9 @@
- syslogp = &outbuf[strlen(outbuf)];
-
- /* Now format the actual message */
--#ifdef HAVE_VSPRINTF
-+#ifdef HAVE_VSNPRINTF
-+ vsnprintf(syslogp, sizeof(outbuf) - (syslogp - outbuf), format, arglist);
-+#elif HAVE_VSPRINTF
- vsprintf(syslogp, format, arglist);
- #else /* HAVE_VSPRINTF */
- sprintf(syslogp, format, ((int *) arglist)[0], ((int *) arglist)[1],