diff options
author | default <nobody@localhost> | 2023-06-05 18:36:36 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2023-06-05 18:36:36 +0200 |
commit | 8c9195694781f35c70bd48739da9c7f44604e5b5 (patch) | |
tree | f5612b35c4e4e90c9171a39f0e5b8dcc1626a048 /httpd.c | |
parent | fafdbbf815ea44ca1813a4ab58547d487f6a3bfb (diff) |
Replace an sprintf() with an snprintf().
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) /* 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) { |