Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
3
-
9223372036854775807
Description
This is highlighted by modern gcc and I guess not so important in the end, but the warnng breaks the compile:
lsnapshot.c: In function Б─≤jt_snapshot_createБ─≥:
lsnapshot.c:1328:31: error: Б─≤snprintfБ─≥ output truncated before the last format character [-Werror=format-truncation=]
snprintf(new_fsname, 8, "%08x", (__u32)random());
^
lsnapshot.c:1328:2: note: Б─≤snprintfБ─≥ output 9 bytes into a destination of size 8
snprintf(new_fsname, 8, "%08x", (__u32)random());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~