From bc1396483a43a2f5672d2dccb6029b0180b8bb05 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sat, 17 Oct 2015 19:45:12 +0200 Subject: [PATCH] compilation quickfix --- src/wrappers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3