diff options
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -510,7 +510,7 @@ void httpd(void) | |||
| 510 | 510 | ||
| 511 | /* initialize the job control engine */ | 511 | /* initialize the job control engine */ |
| 512 | pthread_mutex_init(&job_mutex, NULL); | 512 | pthread_mutex_init(&job_mutex, NULL); |
| 513 | sprintf(sem_name, "/job_%d", getpid()); | 513 | snprintf(sem_name, sizeof(sem_name), "/job_%d", getpid()); |
| 514 | job_sem = sem_open(sem_name, O_CREAT, 0644, 0); | 514 | job_sem = sem_open(sem_name, O_CREAT, 0644, 0); |
| 515 | 515 | ||
| 516 | if (job_sem == NULL) { | 516 | if (job_sem == NULL) { |