]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/signal-util.c
tree-wide: make use of new STRLEN() macro everywhere (#7639)
[thirdparty/systemd.git] / src / basic / signal-util.c
index 3137f3d079c49272a95d9fe9b89360860c35c143..27caabe4716b33583647f00de55afa2d94d7f550 100644 (file)
@@ -226,7 +226,7 @@ static const char *const __signal_table[] = {
 DEFINE_PRIVATE_STRING_TABLE_LOOKUP(__signal, int);
 
 const char *signal_to_string(int signo) {
-        static thread_local char buf[sizeof("RTMIN+")-1 + DECIMAL_STR_MAX(int) + 1];
+        static thread_local char buf[STRLEN("RTMIN+") + DECIMAL_STR_MAX(int) + 1];
         const char *name;
 
         name = __signal_to_string(signo);