memfd-util: use TASK_COMM_LEN at one more place

Note this corrects the size of the array from 17 to 16, as the 16
already includes space for a trailing NUL.
This commit is contained in:
Lennart Poettering
2024-12-17 18:26:15 +01:00
parent ce66a2f2bb
commit caf1436ee8
+1 -1
View File
@@ -40,7 +40,7 @@ int memfd_new(const char *name) {
_cleanup_free_ char *g = NULL;
if (!name) {
char pr[17] = {};
char pr[TASK_COMM_LEN] = {};
/* If no name is specified we generate one. We include
* a hint indicating our library implementation, and