1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

libdm: report: fix string list internal representation if delimiter is composed of more than one char

This commit is contained in:
Peter Rajnoha 2014-07-10 16:09:58 +02:00
parent 1e5ec893c7
commit e38af4e28f
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
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.
Version 1.02.86 - 23rd June 2014

View File

@ -420,7 +420,7 @@ int dm_report_field_string_list(struct dm_report *rh,
*/
sort_value->items[i].pos = pos;
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)) {