| version 1.15, 2015/12/28 22:08:18 |
version 1.16, 2016/08/17 18:07:07 |
|
|
| #include <stdint.h> |
#include <stdint.h> |
| #include <stdlib.h> |
#include <stdlib.h> |
| #include <string.h> |
#include <string.h> |
| |
#include <syslog.h> |
| #include <unistd.h> |
#include <unistd.h> |
| |
|
| #include "local.h" |
#include "local.h" |
|
|
| /*FALLTHROUGH*/ |
/*FALLTHROUGH*/ |
| case 's': |
case 's': |
| if (flags & LONGINT) { |
if (flags & LONGINT) { |
| if ((cp = GETARG(wchar_t *)) == NULL) |
if ((cp = GETARG(wchar_t *)) == NULL) { |
| |
struct syslog_data sdata = SYSLOG_DATA_INIT; |
| |
int save_errno = errno; |
| |
|
| |
syslog_r(LOG_CRIT | LOG_CONS, &sdata, |
| |
"vfwprintf \%ls NULL in \"%s\"", fmt0); |
| |
errno = save_errno; |
| |
|
| cp = L"(null)"; |
cp = L"(null)"; |
| |
} |
| } else { |
} else { |
| char *mbsarg; |
char *mbsarg; |
| if ((mbsarg = GETARG(char *)) == NULL) |
if ((mbsarg = GETARG(char *)) == NULL) { |
| |
struct syslog_data sdata = SYSLOG_DATA_INIT; |
| |
int save_errno = errno; |
| |
|
| |
syslog_r(LOG_CRIT | LOG_CONS, &sdata, |
| |
"vfwprintf \%s NULL in \"%s\"", fmt0); |
| |
errno = save_errno; |
| |
|
| mbsarg = "(null)"; |
mbsarg = "(null)"; |
| |
} |
| free(convbuf); |
free(convbuf); |
| convbuf = __mbsconv(mbsarg, prec); |
convbuf = __mbsconv(mbsarg, prec); |
| if (convbuf == NULL) { |
if (convbuf == NULL) { |