NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/51002: src/lib/libc/gen/getnetgrent.c:169: % specifier mixup ?



>Number:         51002
>Category:       lib
>Synopsis:       src/lib/libc/gen/getnetgrent.c:169: % specifier mixup ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 24 12:20:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160324
>Organization:
>Environment:
>Description:

src/lib/libc/gen/getnetgrent.c:169]: (warning) %s in format string (no. 1) requires 'char *' but the argument type is 'void'.


Source code is

       char buf[1024];
        (void) fprintf(stderr, "netgroup %s\n",
            _ng_print(buf, sizeof(buf), ng));

but

void
_ng_print(char *buf, size_t len, const struct netgroup *ng)

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index