summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-05-09 14:23:32 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-05-12 03:09:11 +0200
commit567097848c734c4843932684f6603bfc13a68b98 (patch)
treea92cde1056cfb9f2db4e5aa7824752e5c4ba4bfa /src/shared
parentbootctl: same entry path check case-insensitive (diff)
downloadsystemd-567097848c734c4843932684f6603bfc13a68b98.tar.xz
systemd-567097848c734c4843932684f6603bfc13a68b98.zip
specifier: use SD_ID128_STRING_MAX
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/specifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/specifier.c b/src/shared/specifier.c
index 6edf4a215c..09e8b2dc7d 100644
--- a/src/shared/specifier.c
+++ b/src/shared/specifier.c
@@ -124,7 +124,7 @@ int specifier_machine_id(char specifier, const void *data, const void *userdata,
if (r < 0)
return r;
- n = new(char, 33);
+ n = new(char, SD_ID128_STRING_MAX);
if (!n)
return -ENOMEM;
@@ -141,7 +141,7 @@ int specifier_boot_id(char specifier, const void *data, const void *userdata, ch
if (r < 0)
return r;
- n = new(char, 33);
+ n = new(char, SD_ID128_STRING_MAX);
if (!n)
return -ENOMEM;