8779cd4b60
o fix dspamc that was busted in the 3.8.0 release, verified to work via testing
13 lines
483 B
Plaintext
13 lines
483 B
Plaintext
$OpenBSD: patch-src_mysql_drv_c,v 1.6 2007/12/21 14:42:23 todd Exp $
|
|
--- src/mysql_drv.c.orig Thu Sep 21 20:25:19 2006
|
|
+++ src/mysql_drv.c Sun Apr 29 17:57:52 2007
|
|
@@ -1362,7 +1362,7 @@ _ds_get_nextuser (DSPAM_CTX * CTX)
|
|
virtual_username,
|
|
virtual_table);
|
|
#else
|
|
- strcpy (query, "select distinct uid from dspam_stats");
|
|
+ strlcpy (query, "select distinct uid from dspam_stats", sizeof (query));
|
|
#endif
|
|
if (MYSQL_RUN_QUERY (s->dbt->dbh_read, query))
|
|
{
|