]> 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)
commit8440981845765c916febec9f42dbaa3315dceb0e
tree329edea388b921bce48440834a616d6303cf396a
parent5ba08f195a49177f9d335ab115701879a6faa1bd
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.029775 seconds and 5 git commands to generate.