mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
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:
parent
ce66a2f2bb
commit
caf1436ee8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user