* Rename demon -> daemon

This commit is contained in:
Olof hagsand 2022-03-07 11:17:34 +01:00
parent dd2ac56af8
commit ff37ce808c
7 changed files with 11 additions and 13 deletions

View file

@ -186,7 +186,7 @@ clixon_event_reg_fd(int fd,
return -1;
}
memset(e, 0, sizeof(struct event_data));
strncpy(e->e_string, str, EVENT_STRLEN);
strncpy(e->e_string, str, EVENT_STRLEN-1);
e->e_fd = fd;
e->e_fn = fn;
e->e_arg = arg;
@ -261,7 +261,7 @@ clixon_event_reg_timeout(struct timeval t,
return -1;
}
memset(e, 0, sizeof(struct event_data));
strncpy(e->e_string, str, EVENT_STRLEN);
strncpy(e->e_string, str, EVENT_STRLEN-1);
e->e_fn = fn;
e->e_arg = arg;
e->e_type = EVENT_TIME;