From 24781de8bedb3bf4d12d7ec1d0307842e59a3f94 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 10 Dec 2024 20:47:53 +1300 Subject: Binding for filename.H added --- src/c_fl_error.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/c_fl_error.cpp') diff --git a/src/c_fl_error.cpp b/src/c_fl_error.cpp index 17c45a0..2b83187 100644 --- a/src/c_fl_error.cpp +++ b/src/c_fl_error.cpp @@ -19,34 +19,34 @@ extern "C" void error_fatal_hook(const char * m); // This is the size used internally in FLTK anyway -const int bsize = 1024; +const int error_bsize = 1024; // Some prep needed to convert vargs to a single char* void warning_hook_prep(const char * m, ...) { va_list args; - char buf[bsize]; + char buf[error_bsize]; va_start(args, m); - vsnprintf(buf, bsize, m, args); + vsnprintf(buf, error_bsize, m, args); va_end(args); error_warning_hook(buf); } void error_hook_prep(const char * m, ...) { va_list args; - char buf[bsize]; + char buf[error_bsize]; va_start(args, m); - vsnprintf(buf, bsize, m, args); + vsnprintf(buf, error_bsize, m, args); va_end(args); error_error_hook(buf); } void fatal_hook_prep(const char * m, ...) { va_list args; - char buf[bsize]; + char buf[error_bsize]; va_start(args, m); - vsnprintf(buf, bsize, m, args); + vsnprintf(buf, error_bsize, m, args); va_end(args); error_fatal_hook(buf); } -- cgit