diff options
| author | Karel Zak <kzak@redhat.com> | 2021-08-05 16:05:58 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2021-08-05 16:06:12 +0200 |
| commit | f60dc888489a0b8dcb24fe64659d3b7e8ebc778f (patch) | |
| tree | 5bbf650985c434ba450ef651f241a13df8d68cbf /misc-utils/lsblk.c | |
| parent | 2e03758dc56ccfdec4ca3401136d2701a219b943 (diff) | |
| download | util-linux-f60dc888489a0b8dcb24fe64659d3b7e8ebc778f.tar.gz | |
lib/buffer: retun size of the buffer and data
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/lsblk.c')
| -rw-r--r-- | misc-utils/lsblk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index 754081d077..4a501eda09 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -820,7 +820,7 @@ static char *device_get_data( if (i + 1 < n) ul_buffer_append_data(&buf, "\n", 1); } - str = ul_buffer_get_data(&buf); + str = ul_buffer_get_data(&buf, NULL); break; } case COL_FSROOTS: @@ -838,7 +838,7 @@ static char *device_get_data( if (i + 1 < n) ul_buffer_append_data(&buf, "\n", 1); } - str = ul_buffer_get_data(&buf); + str = ul_buffer_get_data(&buf, NULL); break; } case COL_LABEL: |
