diff options
| author | Peter Rajnoha <prajnoha@redhat.com> | 2012-04-04 13:17:38 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2012-04-04 13:32:25 +0200 |
| commit | 8265242b22a672d592025ec66365d32d60429557 (patch) | |
| tree | 7a9e78e979d70e6b1bdaa781bd9d7faf52edab57 /misc-utils/lsblk.c | |
| parent | 4581bd9c6797ea3b753c1d2019a37a84975d749a (diff) | |
| download | util-linux-8265242b22a672d592025ec66365d32d60429557.tar.gz | |
lsblk: count with terminating character, man page -s entry
Signed-off-by: Peter Rajnoha <prajnoha@redhat.com>
Diffstat (limited to 'misc-utils/lsblk.c')
| -rw-r--r-- | misc-utils/lsblk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index ad773c5982..76356efbbf 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -524,7 +524,7 @@ static char *encode_str(const char *str) if (!str) goto err; - sz = strlen(str) * 4; + sz = strlen(str) * 4 + 1; enc = xmalloc(sz); if (blkid_encode_string(str, enc, sz) != 0) |
