Re: [PATCH 0/5] Clean up various places using strcpy()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/3/21 11:45 AM, Peter Krempa wrote:
This series +
https://listman.redhat.com/archives/libvir-list/2021-March/msg00081.html

removes use of strcpy().

Peter Krempa (5):
   virIndexToDiskName: Make 'idx' unsigned and remove check
   virIndexToDiskName: Use g_string_prepend(_c) to improve readability
   remote_daemon_dispatch: Replace g_new + strcpy with g_strdup
   virHostCPUGetStatsLinux: Avoid 'strcpy'
   commandhelper: printCwd: Print result directly instead of copying it

  src/remote/remote_daemon_dispatch.c |  9 +++------
  src/util/virhostcpu.c               |  6 +++---
  src/util/virutil.c                  | 29 +++++++----------------------
  src/util/virutil.h                  |  2 +-
  src/vmx/vmx.c                       | 12 ------------
  src/vz/vz_sdk.c                     |  3 ---
  tests/commandhelper.c               |  7 ++++---
  7 files changed, 18 insertions(+), 50 deletions(-)


Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux