1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Zdenek Kabelac 96077265c4 Replace dm_snprintf with strncpy
My previous patch fixed incorrect error check for dm_snprintf.
However in this particular case - dm_snprintf has been used differently -
just like strncpy + setting last char with '\0' - so the code had to return
error - because the buffer was to short for whole string.

Patch replaces it with real strncpy.
Also test for alloca() failure is removed - as the program behaviour
is rather undefined in this case - it never returns NULL.
2011-04-12 14:13:17 +00:00
..
activate Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
cache Keep the cache content when the exported vg buffer is matching 2011-03-30 13:14:34 +00:00
commands Replace PV_MIN_SIZE with function pv_min_size() 2011-02-18 14:11:22 +00:00
config Optimise _eat_space and _get_token 2011-03-10 14:51:35 +00:00
datastruct Better const cast logic 2011-04-08 14:14:57 +00:00
device Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
display Fix some compile warnings on RHEL5 2011-03-01 20:17:56 +00:00
error Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
filters Const fixing 2011-02-18 14:47:28 +00:00
format1 Fix reading of unitialized memory 2011-03-30 12:30:39 +00:00
format_pool Use format instance mempool where possible and adequate. 2011-03-11 15:10:16 +00:00
format_text Add missing printf attributes 2011-04-08 14:21:34 +00:00
freeseg Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
label Add dm_zalloc and use it and dm_pool_zalloc throughout. 2010-09-30 21:06:50 +00:00
locking Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
log Fix some forgotten -Wold-style-definition gcc warnings 2011-04-08 14:13:08 +00:00
metadata Replace dm_snprintf with strncpy 2011-04-12 14:13:17 +00:00
mirror Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
misc Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
mm Fix some unmatching sign comparation gcc warnings 2011-04-08 14:40:18 +00:00
replicator Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
report This patchset refactors some reporting code and completes the remaining 2011-04-12 12:24:29 +00:00
snapshot Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
striped Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
unknown Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
uuid Const fixing 2011-02-18 14:47:28 +00:00
zero Replace malloc with zalloc when creating segment_type's 2011-03-25 21:59:42 +00:00
Makefile.in Refactor the percent (mirror sync, snapshot usage) handling code to use 2010-11-30 11:53:31 +00:00