diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-02 13:05:59 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-02 13:05:59 -0400 |
| commit | 323c600e9884dbd8f5997c2a1d57d8efa180a9be (patch) | |
| tree | 8a1a4e36954cbef020cf76b1b8457ac9fe779147 /src | |
| parent | a053b5f80f251ee5407d3aa2a6ef1449540a889a (diff) | |
| download | stasis-323c600e9884dbd8f5997c2a1d57d8efa180a9be.tar.gz | |
Replace string functions
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/core/multiprocessing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/core/multiprocessing.c b/src/lib/core/multiprocessing.c index b17bdc1..6c64888 100644 --- a/src/lib/core/multiprocessing.c +++ b/src/lib/core/multiprocessing.c @@ -198,7 +198,7 @@ struct MultiProcessingTask *mp_pool_task(struct MultiProcessingPool *pool, const if (globals.enable_task_logging) { snprintf(slot->log_file, sizeof(slot->log_file), "%s", pool->log_root); // FORTIFY_SOURCE won't leave snprintf alone. The chance for truncation is slim anyway. - strncat(slot->log_file, "/", sizeof(slot->log_file) - strlen(slot->log_file)); + safe_strncat(slot->log_file, "/", sizeof(slot->log_file)); } else { snprintf(slot->log_file, sizeof(slot->log_file), "/dev/stdout"); } |
