]> sourceware.org Git - lvm2.git/commit
Use memcpy and add error message
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 28 Jan 2011 10:19:00 +0000 (10:19 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 28 Jan 2011 10:19:00 +0000 (10:19 +0000)
commit7f8badfe5edd68990aa7ff9366dfeb0bc746d6fe
tree329edea388b921bce48440834a616d6303cf396a
parenta5c6acf22af82fa14b6224d1eeb62dae21c82495
Use memcpy and add error message

strncpy (which check each byte for \0) is not need as we always copy
the length size - so using memcpy is a bit cheaper.

Add missing log_error message for failed allocation.
lib/config/config.c
This page took 0.040116 seconds and 5 git commands to generate.