]> git.ipfire.org Git - thirdparty/util-linux.git/commit
pg: fix wcstombs() use
authorKarel Zak <kzak@redhat.com>
Tue, 1 Sep 2020 09:50:11 +0000 (11:50 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 1 Sep 2020 09:54:07 +0000 (11:54 +0200)
commit42fa381b9ddfb17a347d50923b2741fdd48bc300
tree05cfaa6b8051e598bcf5a86f3b93f4b95a5c1472
parent57898c3a7ee8fc5933cddd4526bb3980bef85a02
pg: fix wcstombs() use

The size (3rd) argument should be ignored if the 1st *dest is NULL, but it seems gcc & glibc headers
are more pedantic now:

ext-utils/pg.c:456:13: error: argument 1 is null but the corresponding size argument 3 value is 2048 [-Werror=nonnull]

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