From 6e85ac77af594035137950d801d8a1bacce548a3 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 21 Oct 2016 12:04:46 +0900 Subject: Fix use cases of snprintf. * agent/call-pinentry.c, agent/call-scd.c, agent/command.c, build-aux/speedo/w32/g4wihelp.c, common/get-passphrase.c, dirmngr/dirmngr.c, g10/call-agent.c, g10/cpr.c, g10/keygen.c, g10/openfile.c, g10/passphrase.c, scd/app-openpgp.c, scd/scdaemon.c, sm/call-agent.c, sm/call-dirmngr.c, sm/certreqgen.c: Fix assuming C99. -- Signed-off-by: NIIBE Yutaka --- dirmngr/dirmngr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dirmngr/dirmngr.c') diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index 271360e1f..90eb6d43b 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -2050,9 +2050,8 @@ handle_connections (assuan_fd_t listen_fd) memset (&argval, 0, sizeof argval); argval.afd = fd; - snprintf (threadname, sizeof threadname-1, + snprintf (threadname, sizeof threadname, "conn fd=%d", FD2INT(fd)); - threadname[sizeof threadname -1] = 0; ret = npth_create (&thread, &tattr, start_connection_thread, argval.aptr); -- cgit v1.2.3