/*
- * Copyright (c) 2016 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2016-2017 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
sudo_vsyslog(int pri, const char *fmt, va_list ap)
{
int saved_errno = errno;
- char *cp, *ep, msgbuf[8192], new_fmt[1024];
+ char *cp, *ep, msgbuf[8192], new_fmt[2048];
va_list ap2;
size_t len;
if (len >= (size_t)(ep - cp))
len = (size_t)(ep - cp) - 1;
cp += len;
- break;
} else {
if (fmt[0] == '%' && fmt[1] == '%') {
fmt++;