missing parentheses
authorAleš Křenek <ljocha@ics.muni.cz>
Thu, 13 Oct 2005 19:28:40 +0000 (19:28 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Thu, 13 Oct 2005 19:28:40 +0000 (19:28 +0000)
org.glite.jp.primary/src/attrs.c

index c635563..044b610 100644 (file)
@@ -116,7 +116,7 @@ glite_jpps_get_attrs(glite_jp_context_t ctx,const char *job,char **attr,int natt
                if (nnames < 0) continue; /* XXX: error ignored */
 
                if (nnames > 0) {
-                       files = realloc(files,nfiles+nnames+1 * sizeof *files);
+                       files = realloc(files,(nfiles+nnames+1) * sizeof *files);
                        for (j=0; j<nnames; j++) {
                                files[nfiles].class_idx = i;
                                files[nfiles++].name = names[j];