Update of /cvsroot/mahogany/M/lib/dspam
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30140/lib/dspam

Modified Files:
        sqlite_drv.c 
Log Message:
dspam bug fix: SQLitePragma attribute handling was broken

Index: sqlite_drv.c
===================================================================
RCS file: /cvsroot/mahogany/M/lib/dspam/sqlite_drv.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -b -u -2 -r1.12 -r1.13
--- sqlite_drv.c        23 Oct 2004 21:25:31 -0000      1.12
+++ sqlite_drv.c        28 Oct 2004 19:12:37 -0000      1.13
@@ -680,8 +680,7 @@
 
   if (_ds_read_attribute(CTX->config->attributes, "SQLitePragma")) {
-    char pragma[1024];
     attribute_t *t = _ds_find_attribute(CTX->config->attributes, "SQLitePragma");
     while(t != NULL) {
-      snprintf(pragma, sizeof(pragma), "PRAGMA %s", t->value);
+      snprintf(buff, sizeof(buff), "PRAGMA %s", t->value);
       if ((sqlite_exec(s->dbh, buff, NULL, NULL, &err))!=SQLITE_OK)
       {



-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to