summaryrefslogtreecommitdiffstats
path: root/common/marshaller.c
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-01-26 16:34:55 +0000
committerFrediano Ziglio <fziglio@redhat.com>2016-01-26 17:17:08 +0000
commit7790dacfd3fe0b6624f64260ed5e7375dcf06aae (patch)
tree2d019b9fa0f52d6df4e3fdb60a291b2e62aeb45f /common/marshaller.c
parent5376f1d88c3aac5ae8f9d387aee61929f1840fa9 (diff)
downloadspice-common-7790dacfd3fe0b6624f64260ed5e7375dcf06aae.tar.gz
spice-common-7790dacfd3fe0b6624f64260ed5e7375dcf06aae.tar.xz
spice-common-7790dacfd3fe0b6624f64260ed5e7375dcf06aae.zip
small spice_strdup optimization
avoid to compute the string length twice and use memcpy instead of strcpy which is faster not having to check for terminator. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'common/marshaller.c')
0 files changed, 0 insertions, 0 deletions