From 40f3218917d0702de83e535d6a2a5e2eae6d3e80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Wed, 20 Jan 2010 17:44:21 +0000 Subject: [PATCH] - fixed notifications list in HTML --- org.glite.lb.server/src/lb_proto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.glite.lb.server/src/lb_proto.c b/org.glite.lb.server/src/lb_proto.c index fbec29b..394c604 100644 --- a/org.glite.lb.server/src/lb_proto.c +++ b/org.glite.lb.server/src/lb_proto.c @@ -231,12 +231,12 @@ static int getUserNotifications(edg_wll_Context ctx, char *user, char ***notifid int n = 0; *notifids = NULL; - while(edg_wll_FetchRow(ctx, notifs, sizeof(notifc)/sizeof(notifc[0]), NULL, notifc)){ + while(edg_wll_FetchRow(ctx, notifs, 1, NULL, notifc)){ n++; *notifids = realloc(*notifids, n*sizeof(**notifids)); - (*notifids)[n-1] = strdup(notifc[n-1]); + (*notifids)[n-1] = strdup(notifc[0]); glite_common_log(LOG_CATEGORY_LB_SERVER, LOG_PRIORITY_DEBUG, - "Notif %s found", notifc[n-1]); + "Notif %s found", notifc[0]); } if (n){ *notifids = realloc(*notifids, (n+1)*sizeof(**notifids)); -- 1.8.2.3