diff options
author | Jim Meyering | 2012-10-04 13:09:54 +0200 |
---|---|---|
committer | Anthony Liguori | 2012-10-05 14:58:37 +0200 |
commit | 5847d9e1399d3497be8eeca6f3a20a18a40b114b (patch) | |
tree | 0a94b172f4ab208649213b64da95264041337014 /hw/bt-hci.c | |
parent | linux-user: remove two unchecked uses of strdup (diff) | |
download | qemu-5847d9e1399d3497be8eeca6f3a20a18a40b114b.tar.gz qemu-5847d9e1399d3497be8eeca6f3a20a18a40b114b.tar.xz qemu-5847d9e1399d3497be8eeca6f3a20a18a40b114b.zip |
ui/vnc: simplify and avoid strncpy
Don't bother with strncpy. There's no need for its zero-fill.
Use g_strndup in place of g_malloc+strncpy+NUL-terminate.
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>
Diffstat (limited to 'hw/bt-hci.c')
0 files changed, 0 insertions, 0 deletions