From b8cf6752bc03ea8f53e0a770fa22972aab0fbaa0 Mon Sep 17 00:00:00 2001 From: edzer Date: Tue, 28 Nov 2023 14:11:11 +0100 Subject: [PATCH] avoid -Wformat-security warning --- src/udunits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udunits.cpp b/src/udunits.cpp index eb294e1..2d0cacd 100644 --- a/src/udunits.cpp +++ b/src/udunits.cpp @@ -20,7 +20,7 @@ extern "C" { void r_error_fn(const char* fmt, va_list args) { char buf[256]; vsnprintf(buf, (size_t) 256, fmt, args); - Rf_error(buf); + Rf_error("%s", buf); } }