From: Jiří Filipovič Date: Wed, 20 Jan 2010 17:44:21 +0000 (+0000) Subject: - fixed notifications list in HTML X-Git-Tag: glite-lb-harvester_R_1_0_3_1~13 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=40f3218917d0702de83e535d6a2a5e2eae6d3e80;p=jra1mw.git - fixed notifications list in HTML --- 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));