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 /build-aux | |
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 'build-aux')
-rw-r--r-- | build-aux/speedo/w32/g4wihelp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build-aux/speedo/w32/g4wihelp.c b/build-aux/speedo/w32/g4wihelp.c index d2c93e710..fe903aa57 100644 --- a/build-aux/speedo/w32/g4wihelp.c +++ b/build-aux/speedo/w32/g4wihelp.c @@ -70,12 +70,12 @@ dummy (HWND hwndParent, int string_size, char *variables, // do your stuff here { char buf[1024]; - snprintf (buf, sizeof buf - 1, "$R0=%s\r\n$R1=%s\r\n", + snprintf (buf, sizeof buf, "$R0=%s\r\n$R1=%s\r\n", getuservariable(INST_R0), getuservariable(INST_R1)); MessageBox (g_hwndParent,buf,0,MB_OK); - snprintf (buf, sizeof buf - 1, + snprintf (buf, sizeof buf, "autoclose =%d\r\n" "all_user_var =%d\r\n" "exec_error =%d\r\n" @@ -278,7 +278,7 @@ void service_error (const char *str) { char buf[1024]; - snprintf (buf, sizeof (buf) - 1, "error: %s: ec=%d\r\n", str, + snprintf (buf, sizeof (buf), "error: %s: ec=%d\r\n", str, GetLastError ()); MessageBox(g_hwndParent, buf, 0, MB_OK); @@ -575,7 +575,7 @@ service_stop (HWND hwndParent, int string_size, char *variables, if (GetTickCount () - start_time > timeout) { char buf[1024]; - snprintf (buf, sizeof (buf) - 1, + snprintf (buf, sizeof (buf), "time out waiting for service %s to stop\r\n", service_name); MessageBox (g_hwndParent, buf, 0, MB_OK); |