mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Replace an sprintf() with an snprintf().
This commit is contained in:
parent
fafdbbf815
commit
8c91956947
1 changed files with 1 additions and 1 deletions
2
httpd.c
2
httpd.c
|
@ -510,7 +510,7 @@ void httpd(void)
|
|||
|
||||
/* initialize the job control engine */
|
||||
pthread_mutex_init(&job_mutex, NULL);
|
||||
sprintf(sem_name, "/job_%d", getpid());
|
||||
snprintf(sem_name, sizeof(sem_name), "/job_%d", getpid());
|
||||
job_sem = sem_open(sem_name, O_CREAT, 0644, 0);
|
||||
|
||||
if (job_sem == NULL) {
|
||||
|
|
Loading…
Reference in a new issue