ref: 088dbbe33035792dadd738982e95e607f59025fb
parent: 9b3691b57b3fc854f77cffb8b9000efc13ee2087
author: Sigrid Haflínudóttir <[email protected]>
date: Mon May 11 08:31:12 EDT 2020
piper: oops
--- a/piper/piper.c
+++ b/piper/piper.c
@@ -43,14 +43,13 @@
void *aux;
int i, n;
- for (i = 1; s[i] != 0 && s[i] != ';'; i++);
- e = s[i] == 0 ? nil : s + i + 1;
+ for (i = 1; s[i] != 0 && s[i] != '\n' && s[i] != ';'; i++);
+ e = (s[i] == 0 || s[i] == '\n') ? nil : s + i + 1;
s[i] = 0;
if (g != nil) {
s++;
i = i36(*s);
- aux = nil;
while (i >= g->numinst) { /* instance needs to be created */
seek(g->clone, 0, 0);
if ((n = read(g->clone, tmp, sizeof(tmp))) < 1)
@@ -70,7 +69,7 @@
free(path);
}
memset(&c, 0, sizeof(c));
- g->synth->cmd(aux, &c);
+ g->synth->cmd(g->inst[i].aux, &c);
}
return e;