1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ag,v 1.2 2004/05/07 17:47:32 abs Exp $
--- src/verify.c.orig Thu Apr 4 13:56:21 2002
+++ src/verify.c
@@ -892,7 +892,7 @@ if (!sender_verify_reject || (rc == DEFE
/* Set up the key for the reject hints database, and attempt to open it.
If successful, read the record. */
-sprintf(buffer, "%s:%.200s", sender_address,
+snprintf(buffer, sizeof(buffer), "%s:%.200s", sender_address,
(sender_host_name != NULL)? sender_host_name :
(sender_host_address != NULL)? sender_host_address : "");
@@ -1182,7 +1182,7 @@ if (sender_verify_callback_error != NULL
O_WRONLY) is needed by Berkeley native DB even when reading only. If the
database won't open, we can do no more. */
-sprintf(buffer, "%s:%.200s", sender_address,
+snprintf(buffer, sizeof(buffer), "%s:%.200s", sender_address,
(sender_host_name != NULL)? sender_host_name :
(sender_host_address != NULL)? sender_host_address : "");
|