Factor out buffer size into #define as intended

This commit is contained in:
Conor Hughes 2019-08-01 15:23:16 -07:00
parent f7386f4e5b
commit 8a6ba9f44a
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
#define ERRBUF_SIZE 128
static void emit_diagnostic(int code, const char *fmt, va_list ap)
{
char buf[128];
char buf[ERRBUF_SIZE];
strerror_r(errno, buf, sizeof(buf));
#if YR_USE_PROG_INVOK_NAME
fprintf(stderr, "%s: ", program_invocation_name);