From 2915c8562b0915e3d627f70cb383d954c42883d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Thu, 16 Mar 2006 17:48:25 +0000 Subject: [PATCH] strncmp() args order --- org.glite.lb.server/src/lb_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/lb_plugin.c b/org.glite.lb.server/src/lb_plugin.c index 3e90708..47666c0 100644 --- a/org.glite.lb.server/src/lb_plugin.c +++ b/org.glite.lb.server/src/lb_plugin.c @@ -354,7 +354,7 @@ static int lb_query(void *fpctx,void *handle,const char *attr,glite_jp_attrval_t // err.desc = "Not implemented yet."; trio_asprintf(&err.desc,"Attribute '%s' not implemented yet.",attr); return glite_jp_stack_error(ctx,&err); - } else if (strncmp(attr, sizeof(GLITE_JP_LBTAG_NS)-1, GLITE_JP_LBTAG_NS) == 0) { + } else if (strncmp(attr, GLITE_JP_LBTAG_NS, sizeof(GLITE_JP_LBTAG_NS)-1) == 0) { tag = strrchr(attr, ':'); if (h->events && tag) { tag++; -- 1.8.2.3