diff options
author | NIIBE Yutaka <[email protected]> | 2016-10-21 03:04:46 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-10-21 03:04:46 +0000 |
commit | 6e85ac77af594035137950d801d8a1bacce548a3 (patch) | |
tree | 9886172b88af046b48da1a4be262adc70ded234e /scd/scdaemon.c | |
parent | agent: Fix saving with FORCE=1. (diff) | |
download | gnupg-6e85ac77af594035137950d801d8a1bacce548a3.tar.gz gnupg-6e85ac77af594035137950d801d8a1bacce548a3.zip |
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 <[email protected]>
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r-- | scd/scdaemon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c index df1abe8b7..ab2fadbb3 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -1292,8 +1292,7 @@ handle_connections (int listen_fd) char threadname[50]; npth_t thread; - snprintf (threadname, sizeof threadname-1, "conn fd=%d", fd); - threadname[sizeof threadname -1] = 0; + snprintf (threadname, sizeof threadname, "conn fd=%d", fd); ctrl->thread_startup.fd = INT2FD (fd); ret = npth_create (&thread, &tattr, start_connection_thread, ctrl); if (ret) |