From: Jaroslav Kysela Date: Sat, 17 Oct 2015 17:45:12 +0000 (+0200) Subject: compilation quickfix X-Git-Tag: v4.2.1~1888 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc1396483a43a2f5672d2dccb6029b0180b8bb05;p=thirdparty%2Ftvheadend.git compilation quickfix --- diff --git a/src/wrappers.c b/src/wrappers.c index 7d1ab9c89..fdcda447d 100644 --- a/src/wrappers.c +++ b/src/wrappers.c @@ -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;