[lxc-devel] [lxc/lxc] 6da736: Suppress hardcoded table sizes

Christian Brauner noreply at github.com
Thu Jul 11 10:10:31 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 6da7363420e5deac4ee086ec435e30441750a82c
      https://github.com/lxc/lxc/commit/6da7363420e5deac4ee086ec435e30441750a82c
  Author: Rachid Koucha <47061324+Rachid-Koucha at users.noreply.github.com>
  Date:   2019-07-11 (Thu, 11 Jul 2019)

  Changed paths:
    M src/lxc/utils.c

  Log Message:
  -----------
  Suppress hardcoded table sizes

. Use sizeof() instead of hardcoded values
. snprintf(..., size, ""...) is in error if the return code is >= size (not sufficient to set only ">")

Signed-off-by: Rachid Koucha <rachid.koucha at gmail.com>


  Commit: bc554fdff9ae0dec2d4e7eb2c17acb6f0214cd01
      https://github.com/lxc/lxc/commit/bc554fdff9ae0dec2d4e7eb2c17acb6f0214cd01
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2019-07-11 (Thu, 11 Jul 2019)

  Changed paths:
    M src/lxc/utils.c

  Log Message:
  -----------
  Merge pull request #3090 from Rachid-Koucha/patch-3

Suppress hardcoded table sizes


Compare: https://github.com/lxc/lxc/compare/9b0179588698...bc554fdff9ae


More information about the lxc-devel mailing list