Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
compilation quickfix
  • Loading branch information
perexg committed Oct 17, 2015
1 parent 35c0d91 commit bc13964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wrappers.c
Expand Up @@ -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;
Expand Down

0 comments on commit bc13964

Please sign in to comment.