summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-07-11 20:45:21 +0000
committerJudd Vinet <judd@archlinux.org>2004-07-11 20:45:21 +0000
commitde737c171f2d57baa3e01abe01f7afd588ec1753 (patch)
tree7d9c767f210d372f3b772acd9791dbbd15385c9f
parent543c4e812bcc6df5d8e437b4accfbc7e1a273534 (diff)
fixed todolist_pkgs table ref in pkgdb2
-rw-r--r--pkgdb2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgdb2.c b/pkgdb2.c
index 7b21600..127c31c 100644
--- a/pkgdb2.c
+++ b/pkgdb2.c
@@ -1,4 +1,4 @@
-/* $Id: pkgdb2.c,v 1.3 2004/07/02 00:17:52 judd Exp $ */
+/* $Id: pkgdb2.c,v 1.4 2004/07/11 20:45:21 judd Exp $ */
#include <stdio.h>
#include <stdlib.h>
@@ -231,7 +231,7 @@ int main(int argc, char **argv)
snprintf(query, sizeof(query), "DELETE FROM packages WHERE id='%d'",
ptr->id);
doquery(&db, query);
- snprintf(query, sizeof(query), "DELETE FROM todolist_pkgs WHERE id='%d'",
+ snprintf(query, sizeof(query), "DELETE FROM todolist_pkgs WHERE listid='%d'",
ptr->id);
doquery(&db, query);
}