]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
utils: add ^ to regexp_escape, fixes #3079
authorJaroslav Kysela <perex@perex.cz>
Tue, 15 Sep 2015 16:26:17 +0000 (18:26 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 15 Sep 2015 16:26:49 +0000 (18:26 +0200)
src/utils.c

index 8bea6ff05b171d6c70655c55a66d79ac2318c685..446b9c21d0cd5723f931527bf8f63a98b4f69151 100644 (file)
@@ -565,6 +565,7 @@ regexp_escape(const char* str)
       case '[':
       case ']':
       case '*':
+      case '^':
         *b = '\\';
         b++;
         /* -fallthrough */