summaryrefslogtreecommitdiffstats
path: root/src/sord_validate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sord_validate.c')
-rw-r--r--src/sord_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sord_validate.c b/src/sord_validate.c
index 7c44941..ad62d6f 100644
--- a/src/sord_validate.c
+++ b/src/sord_validate.c
@@ -165,7 +165,7 @@ regexp_match(const uint8_t* pat, const char* str)
#ifdef HAVE_PCRE
// Append a $ to the pattern so we only match if the entire string matches
const size_t len = strlen((const char*)pat);
- char* const regx = malloc(len + 2);
+ char* const regx = (char*)malloc(len + 2);
memcpy(regx, pat, len);
regx[len] = '$';
regx[len + 1] = '\0';