13 lines
483 B
Plaintext
13 lines
483 B
Plaintext
$OpenBSD: patch-src_mysql_drv_c,v 1.3 2006/04/28 01:13:37 brad Exp $
|
|
--- src/mysql_drv.c.orig Tue Apr 18 20:54:25 2006
|
|
+++ src/mysql_drv.c Thu Apr 27 10:03:29 2006
|
|
@@ -1360,7 +1360,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))
|
|
{
|