]> git.ipfire.org Git - thirdparty/qemu.git/commit - linux-user/elfload.c
linux-user: remove two unchecked uses of strdup
authorJim Meyering <meyering@redhat.com>
Thu, 4 Oct 2012 11:09:53 +0000 (13:09 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Oct 2012 12:58:37 +0000 (07:58 -0500)
commit900cfbcac6fa689b5fc8d53b60c3ed39047b8a33
treed6eb3eefd22570c57af1e056e705c1f3dc88ee88
parentae2150680190e510dcbcdfdbfb3a54369c75367f
linux-user: remove two unchecked uses of strdup

Remove two uses of strdup (use g_path_get_basename instead),
and add a comment that this strncpy use is ok.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
linux-user/elfload.c