diff --git a/src/util-logopenfile.c b/src/util-logopenfile.c index f5e836b472..90b42c3b7b 100644 --- a/src/util-logopenfile.c +++ b/src/util-logopenfile.c @@ -834,7 +834,7 @@ static bool LogFileThreadedName( } /* Check if basename has an extension */ - char *dot = strrchr(base, '.'); + const char *dot = strrchr(base, '.'); if (dot) { char *tname = SCStrdup(original_name); if (!tname) {