diff options
author | Roland Rossgotterer <roland.rossgotterer@gmail.com> | 2019-01-08 16:03:02 +0100 |
---|---|---|
committer | Roland Rossgotterer <roland.rossgotterer@gmail.com> | 2019-01-09 08:42:25 +0000 |
commit | 0330db86fdd42ef1be1354cdbbd6e0ffc21d9a80 (patch) | |
tree | fcf13678e6a0194b0336d214d45f5452ca4c8646 /src/gui/kernel | |
parent | 166162d8305404e8fc820de91ef9f6d733b4657a (diff) |
Increase sysctl argument buffer size to include null character
An UUID is 36 characters long, but sysctl and sysctlbyname return a
null terminated string with 37 characters. That was too long for the
provided buffer. Surprisingly the return code was still 0 instead of -1.
The returned buffer was empty though.
Change-Id: Ic4d20ecc1b2b3a3e98468d31ac304957d56deee9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/kernel')
0 files changed, 0 insertions, 0 deletions