From de737c171f2d57baa3e01abe01f7afd588ec1753 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sun, 11 Jul 2004 20:45:21 +0000 Subject: fixed todolist_pkgs table ref in pkgdb2 --- pkgdb2.c | 4 ++-- 1 file 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 #include @@ -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); } -- cgit v1.2.3-24-g4f1b