Factor out buffer size into #define as intended
This commit is contained in:
parent
f7386f4e5b
commit
8a6ba9f44a
|
@ -22,7 +22,7 @@
|
||||||
#define ERRBUF_SIZE 128
|
#define ERRBUF_SIZE 128
|
||||||
static void emit_diagnostic(int code, const char *fmt, va_list ap)
|
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));
|
strerror_r(errno, buf, sizeof(buf));
|
||||||
#if YR_USE_PROG_INVOK_NAME
|
#if YR_USE_PROG_INVOK_NAME
|
||||||
fprintf(stderr, "%s: ", program_invocation_name);
|
fprintf(stderr, "%s: ", program_invocation_name);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user