]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lscpu: reuse the same buffer
authorKarel Zak <kzak@redhat.com>
Tue, 9 May 2017 10:31:52 +0000 (12:31 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 9 May 2017 10:31:52 +0000 (12:31 +0200)
commit577d1a663c81035260a7e191f1e2a00775d7effc
treeea64d41bcaf8b83d17c40f0d2ff87a9372b9c279
parent89222b17fc6b0e9d6d0e4de90a2413d946025d73
lscpu: reuse the same buffer

Now we use libsmartcols for the default output and all is allocated in
the smartcols table. So, we can reuse the same buffer for all
sprintf/scanf calls.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu.c