mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
Fix GCC 7 string truncation warning, too small temporary buffer
In GCC 7 the -Wall infers the new -Wformat-truncation which finds problems with string truncation in functions like snprintf(). This patch fixes a possibly problem in path name creation which, combined with the scandir() function, might cause loss of .conf files, failure to call run-parts properly, and kill services at shutdown. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
faca84a590
commit
13887f323a
3 files changed
+3
-3