]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
compilation quickfix
authorJaroslav Kysela <perex@perex.cz>
Sat, 17 Oct 2015 17:45:12 +0000 (19:45 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 17 Oct 2015 17:45:12 +0000 (19:45 +0200)
src/wrappers.c

index 7d1ab9c89bd37ecae8cd517587a083d0fa79ba12..fdcda447d77e65a2fe7776dd1cb9c1efb99ebcd1 100644 (file)
@@ -188,7 +188,7 @@ tvhthread_create
   int r;
   struct thread_state *ts = calloc(1, sizeof(struct thread_state));
   strncpy(ts->name, "tvh:", 4);
-  strncpy(ts->name+4, name, sizeof(ts->name));
+  strncpy(ts->name+4, name, sizeof(ts->name)-4);
   ts->name[sizeof(ts->name)-1] = '\0';
   ts->run  = start_routine;
   ts->arg  = arg;