summaryrefslogtreecommitdiff
path: root/src/regerror.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2025-03-16 12:06:04 +0100
committerJörg Frings-Fürst <debian@jff.email>2025-03-16 12:06:04 +0100
commit23c9de60f30041419f3925221d4faff4e7a54717 (patch)
tree357c045bdafe11674151335bf4f7d65ae179478f /src/regerror.c
parent35e13e4c9637f5bf7bef6039c8c813207780a174 (diff)
New upstream version 6.9.10upstream/6.9.10upstream
Diffstat (limited to 'src/regerror.c')
-rw-r--r--src/regerror.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regerror.c b/src/regerror.c
index 6d9abe2..72b0e3f 100644
--- a/src/regerror.c
+++ b/src/regerror.c
@@ -352,7 +352,7 @@ onig_error_code_to_str(UChar* s, int code, ...)
void ONIG_VARIADIC_FUNC_ATTR
onig_snprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc,
- UChar* pat, UChar* pat_end, const UChar *fmt, ...)
+ UChar* pat, UChar* pat_end, const char *fmt, ...)
{
int n, need, len;
UChar *p, *s, *bp;
@@ -360,7 +360,7 @@ onig_snprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc,
va_list args;
va_start(args, fmt);
- n = xvsnprintf((char* )buf, bufsize, (const char* )fmt, args);
+ n = xvsnprintf((char* )buf, bufsize, fmt, args);
va_end(args);
need = (int )(pat_end - pat) * 4 + 4;