openbsd-ports/mail/dspam/patches/patch-src_mysql_drv_c
todd 0ae9789410 update to 3.6.8, from Frank Denis
- fixes the PostgreSQL backend that failed to connect
- allows clients to link against libdspam when LDAP is turned on
2006-06-08 14:41:08 +00:00

13 lines
483 B
Plaintext

$OpenBSD: patch-src_mysql_drv_c,v 1.5 2006/06/08 14:41:08 todd Exp $
--- src/mysql_drv.c.orig Sat Jun 3 05:15:49 2006
+++ src/mysql_drv.c Wed Jun 7 13:36:39 2006
@@ -1361,7 +1361,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))
{