Skip to content

Commit

Permalink
kernel: increase read size for version string to 512 bytes (closes #293)
Browse files Browse the repository at this point in the history
  • Loading branch information
liske committed Mar 3, 2024
1 parent e9a1e15 commit c62b152
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/lib/NeedRestart/Kernel/Linux.pm
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ sub nr_linux_version_x86($$) {

# get kernel_version string
seek($fh, 0x200 + $offset, SEEK_SET);
read($fh, $buf, 128);
read($fh, $buf, 512);
close($fh);

$buf =~ s/\000.*$//;
Expand Down

0 comments on commit c62b152

Please sign in to comment.