mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-07 21:18:59 +03:00
libdm: report: fix string list internal representation if delimiter is composed of more than one char
This commit is contained in:
parent
1e5ec893c7
commit
e38af4e28f
@ -1,5 +1,6 @@
|
|||||||
Version 1.02.87 -
|
Version 1.02.87 -
|
||||||
================================
|
================================
|
||||||
|
Fix dm_report_field_string_list to handle delimiter with multiple chars.
|
||||||
Add dm_report_field_reserved_value for per-field reserved value definition.
|
Add dm_report_field_reserved_value for per-field reserved value definition.
|
||||||
|
|
||||||
Version 1.02.86 - 23rd June 2014
|
Version 1.02.86 - 23rd June 2014
|
||||||
|
@ -420,7 +420,7 @@ int dm_report_field_string_list(struct dm_report *rh,
|
|||||||
*/
|
*/
|
||||||
sort_value->items[i].pos = pos;
|
sort_value->items[i].pos = pos;
|
||||||
sort_value->items[i].len = len;
|
sort_value->items[i].len = len;
|
||||||
pos = i == list_size ? pos+len : pos+len+1;
|
pos = i == list_size ? pos+len : pos+len+delimiter_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dm_pool_grow_object(rh->mem, "\0", 1)) {
|
if (!dm_pool_grow_object(rh->mem, "\0", 1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user