put \n's after the wms DNs, not before them
authorDaniel Kouřil <kouril@ics.muni.cz>
Wed, 17 Mar 2010 16:49:16 +0000 (16:49 +0000)
committerDaniel Kouřil <kouril@ics.muni.cz>
Wed, 17 Mar 2010 16:49:16 +0000 (16:49 +0000)
org.glite.lb.client/src/producer.c

index 7ff90a7..1f6e74f 100644 (file)
@@ -842,7 +842,7 @@ static int edg_wll_RegisterJobMaster(
                char *aux,*aux2;
                aux2 = strdup("");
                for (i=0; wms_dn[i]; i++) {
-                       asprintf(&aux,"%s\n%s",aux2,wms_dn[i]);
+                       asprintf(&aux,"%s%s\n",aux2,wms_dn[i]);
                        free(aux2); aux2 = aux; aux = NULL;
                }
                wms_dn_s = strdup(aux2);