]> 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>
Fri, 13 Nov 2020 10:55:36 +0000 (11:55 +0100)
commit1f27b426967f5b0cf4c08e347aa6333cf2bdda30
treebc268ba4d9b8d913b076fac961f56335ced9666b
parent802d7992db30a79eaba645a13a07cf77c8f888f5
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