X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=wrapper%2Frandom.c;h=74dce49fe4864de486fa33bf6a4bfdbf9c1faf05;hb=b7cdc18250880cc44edeef4a4b42c8ac7a135a6d;hp=c938ae35a4ac2a96a2a2deee26cb645a33792af2;hpb=9f36eaed6f91d5897924b551b44d1edd8cee00e2;p=lttng-modules.git diff --git a/wrapper/random.c b/wrapper/random.c index c938ae35..74dce49f 100644 --- a/wrapper/random.c +++ b/wrapper/random.c @@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) +/* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) * * wrapper/random.c * @@ -47,7 +47,7 @@ int wrapper_get_bootid(char *bootid) ret = -EINVAL; goto end; } - + bootid[BOOT_ID_LEN - 1] = '\0'; ret = 0; end: